Download the PHP package toin0u/digitalocean without Composer
On this page you can find all versions of the php package toin0u/digitalocean. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download toin0u/digitalocean
More information about toin0u/digitalocean
Files in toin0u/digitalocean
Package digitalocean
Short Description DigitalOcean API PHP 5.3+ library
License MIT
Homepage https://github.com/toin0u/DigitalOcean
Informations about the package digitalocean
DigitalOcean
The version 2 of the API will be available soon ! Please visit DigitalOceanV2 and contribute :)
This PHP 5.3+ library helps you to interact with the DigitalOcean API via PHP or CLI.
DigitalOcean is built for Developers, helps to get things done faster and to deploy an SSD cloud server in less than 55 seconds with a dedicated IP and root access. Read more.
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:
Or edit composer.json
and add:
And install dependencies:
Now you can add the autoloader, and you will have access to the library:
If you don't use neither Composer nor a ClassLoader in your application, just require the provided autoloader:
Usage
You need an HttpAdapter
which is responsible to get data from DigitalOcean's RESTfull API.
You can provide your own adapter by implementing HttpAdapter\HttpAdapterInterface
.
API
Droplets
Regions
Images
SSH Keys
Sizes
Domains
Events
CLI
To use the Command-Line Interface, you need to copy and rename the
credentials.yml.dist
file to credentials.yml
in your project directory, then add your own Client ID and API key:
If you want to use another credential file just add the option --credentials="/path/to/file"
to commands below.
Commands for Droplets
:
Commands for Images
:
Commands for Regions
:
Commands for Sizes
:
Commands for SSH Keys
:
Commands for Domains
:
Commands for Events
:
Integration with Frameworks
Unit Tests
To run unit tests, you'll need the cURL
extension and a set of dependencies, you can install them using Composer:
Once installed, just launch the following command:
You'll obtain some skipped unit tests due to the need of API keys.
Rename the phpunit.xml.dist
file to phpunit.xml
, then uncomment the following lines and add your own Client ID and
API key:
Contributing
Please see CONTRIBUTING for details.
Credits
Acknowledgments
Changelog
Support
Please open an issues 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
DigitalOcean is released under the MIT License. See the bundled LICENSE file for details.
All versions of digitalocean with dependencies
symfony/console Version ~2.3
symfony/yaml Version ~2.3
toin0u/http-adapter Version ~1.0