|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2021-09-04 (4 months ago) ||Not yet rated by the users||Total: 10 ||All time: 10,535 This week: 386|
This package can be used to manage sites hosted in Cloudways using its API.
It can send HTTP requests to the Cloudways API Web server to perform several types of requests. Currently it can:
- Manage hosted application DNS records
- Manage the access of Git repositories using SSH keys
- Manage integrations with other systems
- Manage the alerts of the current account
- Search in the knowledge base
- List the available server resources
- Manage hosted projects
- Manage SSL certificates and other security resources
- Manage hosting servers
- Manage the Varnish caching server
A PHP-SDK for Cloudways API.
You can clone it to start working on it or use composer to install it.
Type the following command to install SDK using composer
$composer require ahmedkhan847/cloudwaysapiphpsdk
Or create a new file name it
composer.json and paste the following code in it.
"ahmedkhan847/cloudwaysapiphpsdk" : "1.0.0.x-dev"
Cloudways API PHP-SDK also provides you two function to check the status of operation id. The first is
getOperation($operationid) which will return the result from which you have to extract whether the operation is completed. The second one is
getOperationResult($operationid, $wait) which take the
$wait parameter (in seconds) and returns
true when the operation is completed. If it reaches the maximum execution time for PHP, the code will stop and you need to run the function again.
To learn more about using it read the following guide: Possibilities of Cloudways API PHP-SDK.
Creating a New Server
$server = new Server();
$value['cloud'] = "do";
$result = $server->create_server($value);
Using this SDK in Laravel
For laravel define email and api key in
Then in your control add the namespace and start using it.
class ApiController extends Controller
* Display a listing of the resource.
* @return \Illuminate\Http\Response
public function index()
$list = new Lists();
$result = ;
$result = $list->getServerRegions();
$result = $list->getCloudProviders();
$result = $list->getServerSizes();
$result = $list->getApps();
$result = $list->getPackages();
$result = $list->getSettings();
$result = $list->getBackupFrequencies();
$result = $list->getCountries();
$result = $list->getMonitorDurations();
$result = $list->getMonitorTargets();
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.