PHPackages                             vultr/vultr-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. vultr/vultr-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

vultr/vultr-php
===============

The Official Vultr API PHP Wrapper.

v1.0.2(3y ago)2347.9k↓70.5%8[1 issues](https://github.com/vultr/vultr-php/issues)[1 PRs](https://github.com/vultr/vultr-php/pulls)1MITPHPPHP ^8.0CI failing

Since Jul 2Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/vultr/vultr-php)[ Packagist](https://packagist.org/packages/vultr/vultr-php)[ Docs](https://github.com/vultr/vultr-php)[ RSS](/packages/vultr-vultr-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (9)Versions (12)Used By (1)

[![](https://camo.githubusercontent.com/8f5358182ffd458549368eef981eac7caf7c5a8126bc61a568fa6e017ba6973f/68747470733a2f2f7777772e76756c74722e636f6d2f646973742f696d672f6272616e642f6c6f676f2d6461726b2e737667)](https://camo.githubusercontent.com/8f5358182ffd458549368eef981eac7caf7c5a8126bc61a568fa6e017ba6973f/68747470733a2f2f7777772e76756c74722e636f6d2f646973742f696d672f6272616e642f6c6f676f2d6461726b2e737667)

Vultr API PHP Client.
=====================

[](#vultr-api-php-client)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/vultr/vultr-php/main/LICENSE)[![Vultr-Php Changelog](https://camo.githubusercontent.com/e997062a149027beb1bcc74cbe631258e3fe820c08b29c8cc80c0fe18d4fb94c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d6368616e67656c6f672d626c7565)](https://github.com/vultr/vultr-php/blob/main/CHANGELOG.md)[![PHP Version Require](https://camo.githubusercontent.com/0e81f1102a4180b634ea4fbb65e18bde562df17f649346768eb3acfc5b195db1/687474703a2f2f706f7365722e707567782e6f72672f76756c74722f76756c74722d7068702f726571756972652f706870)](https://packagist.org/packages/vultr/vultr-php)[![Latest Stable Version](https://camo.githubusercontent.com/b33c1a3081950d100a8bdecc80046d87a5611f4ad84d4ddde0667273a31a94fd/687474703a2f2f706f7365722e707567782e6f72672f76756c74722f76756c74722d7068702f76)](https://packagist.org/packages/vultr/vultr-php)[![Latest Unstable Version](https://camo.githubusercontent.com/8b3e886264417bc8eaf14a3e8d5c15c6bc6222149f4543e47778436132a5c516/687474703a2f2f706f7365722e707567782e6f72672f76756c74722f76756c74722d7068702f762f756e737461626c65)](https://packagist.org/packages/vultr/vultr-php)[![Total Downloads](https://camo.githubusercontent.com/3a98cefa8760cbe73a6468415f7e0692572ecb8c3216a64e3f28d1b3bb4a2127/687474703a2f2f706f7365722e707567782e6f72672f76756c74722f76756c74722d7068702f646f776e6c6f616473)](https://packagist.org/packages/vultr/vultr-php)[![PHP Tests](https://github.com/vultr/vultr-php/actions/workflows/php.yml/badge.svg?branch=main)](https://github.com/vultr/vultr-php/actions/workflows/php.yml)[![Test Coverage](https://camo.githubusercontent.com/977b09be788fd39e589d0510266a46f26bd79fc1f3e927e8a656c1ce6e443958/68747470733a2f2f76756c74722e6769746875622e696f2f76756c74722d7068702f636f64652d636f7665726167652f62616467652e737667)](https://vultr.github.io/vultr-php/code-coverage/index.html)[![Library Documentation](https://camo.githubusercontent.com/f7fbe09dd3cc124daeb5ca2336edc6a6f94836914eadd2ac8510e4ca050d9be4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d626c7565)](https://vultr.github.io/vultr-php/docs/index.html)

Getting Started
---------------

[](#getting-started)

Must have a PSR7, PSR17, and PSR18 Compatible HTTP Client. [View all PSR's](https://www.php-fig.org/psr/)This client will act on those interfaces which allow for dependancy injection. See Usage for more info.

### Installation

[](#installation)

```
composer require vultr/vultr-php
```

### Usage

[](#usage)

#### Initializing the client

[](#initializing-the-client)

Once decided on what HTTP client implementation that will be used to initiate the client. If the client implementation you chose is a wider used client, it may be possible to be auto detected. This is because this client uses [PHP-Http/Discovery](https://github.com/php-http/discovery).

```
