{"repo":"ovh/php-ovh","free":true,"listed":false,"github":"https://github.com/ovh/php-ovh","clone":"git clone https://github.com/ovh/php-ovh.git","description":"Lightweight PHP wrapper for OVH APIs. That's the easiest way to use OVH.com APIs in your PHP applications.","language":"PHP","stars":303,"topics":["api-wrapper"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"OVHcloud APIs lightweight PHP wrapper This PHP package is a lightweight wrapper for OVHcloud APIs. The easiest way to use OVHcloud APIs in your PHP applications. Compatible with PHP 7.4, 8.0, 8.1, 8.2. Installation Install this wrapper and integrate it inside your PHP application with Composer: composer require ovh/ovh Basic usage Advanced usage Handle exceptions Under the hood, php-ovh uses Guzzle by default to issue API requests. If everything goes well, it will return the response directly as shown in the examples above. If there is an error like a missing endpoint or object (404), an authentication or authorization error (401 or 403) or a parameter error, the Guzzle will raise a GuzzleHttp\\Exception\\ClientException exception. For server-side errors (5xx), it will raise a GuzzleHttp\\Exception\\ServerException exception. You can get the error details with a code like: Customize HTTP client configuration You can inject your own HTTP client with your specific configuration. For instance, you can edit user-agent and timeout for all your requests Authorization flow This flow will allow you to request consumerKey from an OVHcloud account owner. After allowing access to his account, he will be redirected to your application. See \"OVHcloud API authentication\" section below for more information about the authorization flow. Code sample: Enable network burst on GRA1 dedicated servers Here is a more complex example of how to use the wrapper to enable network burst on GRA1 dedicated se","default_branch":null,"files":null,"tree":[],"storefront":"/r/ovh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ovh/php-ovh/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."}