{"repo":"ploi/ploi-php-sdk","free":true,"listed":false,"github":"https://github.com/ploi/ploi-php-sdk","clone":"git clone https://github.com/ploi/ploi-php-sdk.git","description":"Ploi PHP SDK","language":"PHP","stars":77,"topics":["ploi","php","laravel","api","laravel-framework","api-laravel","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Ploi PHP SDK :rocket: The future is now - so stop the hassle, you’re running behind. Quick and easy site deployment with Ploi. Awesome features for awesome developers. Check it out at https://ploi.io This SDK is meant for PHP applications to be able to communicate with our API. You can find our documentation at https://developers.ploi.io Installation Usage First you need to call a new Ploi instance Responses When calling a resource, it will return a Ploi\\Http\\Response object containing decoded JSON as well as the original response from the Guzzle client. You can also only retrieve the JSON, use the getJson() method to only get the JSON back: $ploi- user()- get()- getJson() However, when you want to only get the data, use the getData() method: $ploi- user()- get()- getData() Resources Resources are what you call to access a feature or function. You can get all the resources or get a specific one by its ID, for example with servers: Some actions will require the resource's ID to be set before they can be used: Servers You create a new server by: Or you can create a custom server with a provider not set up in Ploi After running this request, you will have to add the public key of the Ploi worker to your server. This is included in the response with a 1-line command within the ssh command key. Once this is done, you can trigger the URL from the response with the start installation url key or by passing in the server ID. Other methods for servers: Sites Available methods for sites","default_branch":null,"files":null,"tree":[],"storefront":"/r/ploi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ploi/ploi-php-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}