API v2 client in PHP

Visit site

A PHP library for version 2 of the DigitalOcean API

A PHP library for version 2 of the DigitalOcean API

by: toin0uAugust 28, 2014Visit site

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Hi there, composer is a must have ;) If you follow the readme - it’s should be ok. Feel free to ask if you need more info for using the lib.

Good docs on this one!

Why so much negative comments for such an excellent work?

And look at the doc this author has posted in repository. Exceptional.

To lib author, Great job man. Really loved the library, I am using it for my personal project, saving me a lot of time.

For anyone else that doesn’t want a mountain where a molehill should be, here’s some very tiny examples of DO API V2. Not quite a library, but you don’t have to go through a bunch of contortions to get started on doing the basics.


Does this support Spaces?

This also looks promising, and is ‘loosely’ qualified to be called a library:


It’s unlikely that it has the full featureset of the library in this thread, but it doesn’t seem that it requires downloading half the universe.

@roblindman I agree with @toin0u these days composer is a must in the PHP world. I think all the other libraries require composer.

is there another library? I downloaded this, and it seemed to be annoying to set up, requiring composer and other dependencies. It should be a simple ‘require_once ‘digitalocean.php’’ and then be good to go. Instead I found myself entering a maze.

@roblindman I generally don’t get involved in such discussions, but I can’t help myself in this instance. Whilst your comments about “bloatware” may be quite valid from an objective point of view, the way you went about it quite frankly sucked. This is free work, and we should be grateful that someone is giving us something for FREE. If you don’t like it, just don’t use it, move along to a different library. No one is forcing you to do anything. And if you want to helpful, you can always leave a “polite” suggestion that the library could be more “efficient” in terms of resources/dependencies.

In any case, fyi, it took me literally 30 seconds to integrate this into my CodeIgniter application/framework. Why is a maze? Install the library with composer, requires just one command line, and then add the autoload in your php file. In my case, all I did was to instruct CI to enable composer autoload from the right path. And then I went to my controller and called the library to retrieve my DO account info. It was all over in literally 30 seconds, hassle free. So why all the fuss dude?

Be grateful, and compliment the author for a job well done and FREE of charge!

Publish your Tool on Community

Have you created an Integration, API Wrapper, Service, or other Tool that helps developers build on DigitalOcean? Help users find it by listing it in Community Tools.

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel