Download the PHP package rodrigoaguilera/digitalocean-v2 without Composer
On this page you can find all versions of the php package rodrigoaguilera/digitalocean-v2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rodrigoaguilera/digitalocean-v2
More information about rodrigoaguilera/digitalocean-v2
Files in rodrigoaguilera/digitalocean-v2
Package digitalocean-v2
Short Description DigitalOcean API v2 PHP 5.4+ library
License MIT
Homepage https://github.com/rodrigoaguilera/DigitalOceanV2
Informations about the package digitalocean-v2
DigitalOcean V2
Let's consume the DigitalOcean API V2 (issues / changelog) :)
Installation
This library can be found on Packagist. The recommended way to install this is through composer.
Run these commands to install composer, the library and its dependencies:
You then need to install one of the following:
Or edit composer.json
and add:
And then add one of the following:
Using Laravel?
Laravel DigitalOcean by Graham Campbell might interest you.
Using Symfony2?
For Symfony2 users, there is no need to create separate bundle (But you could if you wanted to).Just install toin0u/digitalocean-v2
via composer and define it as a service. For example:
Now you can use in container.
Or you could define your service api one by one using a class factory.
And now you can use it in the container as
This is helpful for a child of
Symfony\Bundle\FrameworkBundle\Controller\Controller
user to use by$this->get('do.droplet')->getAll()
Adapter
We provide a simple BuzzAdapter
which (at the moment) can be tweaked by injecting your own Browser
and ListenerInterface
. By default a Curl
client will be injected in Browser
and the BuzzOAuthListener
will be used.
To wrap your own response message, please inject your own ExceptionInterface
if needed (see DigitalOceanV2\Exception\ResponseException
for more info).
If you use Guzzle, you can inject your own client to our GuzzleAdapter
.
You can also build your own adapter by extending AbstractAdapter
and implementing AdapterInterface
.
API documentation
The API documentation is available here and generated using phpDocumentor
Example
Account
`
Action
Domain
Domain Record
Droplet
Image
Key
Load Balancer
Region
Size
RateLimit
Volume
Contributing
Please see CONTRIBUTING for details.
Changelog
Please see CHANGELOG for details.
Credits
Support
Please open an issue in github
Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the Contributor Covenant, version 1.0.0, available at http://contributor-covenant.org/version/1/0/0/.
License
DigitalOceanV2 is released under the MIT License. See the bundled LICENSE file for details.