Skip to content


Subversion checkout URL

You can clone with
Download ZIP
[DEPRECATED] A DigitalOcean API client for Laravel 4.1+
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Laravel DigitalOcean API

Build Status Coverage Status Software License Latest Version Scrutinizer Quality Score SensioLabsInsight


This package has been replaced, and is no longer maintained.

What Is Laravel DigitalOcean API?

Laravel DigitalOcean API is a DigitalOcean API client for Laravel 4.1.

  • Laravel DigitalOcean API was created by, and is maintained by Graham Campbell.
  • Laravel DigitalOcean API relies on my Laravel Core API package.
  • Laravel DigitalOcean API uses Travis CI with Coveralls to check everything is working.
  • Laravel DigitalOcean API uses Scrutinizer CI and SensioLabsInsight to run additional checks.
  • Laravel DigitalOcean API uses Composer to load and manage dependencies.
  • Laravel DigitalOcean API was not designed for user login, but for server use only.
  • Laravel DigitalOcean API provides a change log, releases, and api docs.
  • Laravel DigitalOcean API is licensed under the Apache License, available here.

System Requirements

  • PHP 5.4.7+ or HHVM 3.0+ (Guzzle 3.8 isn't completely HHVM compatible).
  • You will need Laravel 4.1 because this package is designed for it.
  • You will need Composer installed to load the dependencies of Laravel DigitalOcean API.


Please check the system requirements before installing Laravel DigitalOcean API.

To get the latest version of Laravel DigitalOcean API, simply require "graham-campbell/digitalocean-api": "0.3.*@alpha" in your composer.json file. You'll then need to run composer install or composer update to download it and have the autoloader updated.

You will need to register the Laravel Core API service provider before you attempt to load the Laravel DigitalOcean API service provider. Open up app/config/app.php and add the following to the providers key.

  • 'GrahamCampbell\CoreAPI\CoreAPIServiceProvider'

Once Laravel DigitalOcean API is installed, you need to register the service provider. Open up app/config/app.php and add the following to the providers key.

  • 'GrahamCampbell\DigitalOceanAPI\DigitalOceanAPIServiceProvider'

You can register the DigitalOceanAPI facade in the aliases key of your app/config/app.php file if you like.

  • 'DigitalOceanAPI' => 'GrahamCampbell\DigitalOceanAPI\Facades\DigitalOceanAPI'


Laravel DigitalOcean API requires configuration.

To get started, first publish the package config file:

php artisan config:publish graham-campbell/digitalocean-api

There are many config options:

Client ID

This option ('id') defines the client id to be used from your account page. The default value for this setting is 'YourId'.


This option ('key') defines the api key to be used from your account page. The default value for this setting is 'YourKey'.

Base URL

This option ('baseurl') defines the base url for making api calls against. The default value for this setting is ''.

Additional Configuration

You may want to check out the config for graham-campbell/core-api too. You can configure caching there.


There is currently no usage documentation besides the API Documentation for Laravel DigitalOcean API.

Updating Your Fork

The latest and greatest source can be found on GitHub.

Before submitting a pull request, you should ensure that your fork is up to date.

You may fork Laravel DigitalOcean API:

git remote add upstream git://

The first command is only necessary the first time. If you have issues merging, you will need to get a merge tool such as P4Merge.

You can then update the branch:

git pull --rebase upstream master
git push --force origin <branch_name>

Once it is set up, run git mergetool. Once all conflicts are fixed, run git rebase --continue, and git push --force origin <branch_name>.

Pull Requests

Please review these guidelines before submitting any pull requests.

  • When submitting bug fixes, check if a maintenance branch exists for an older series, then pull against that older branch if the bug is present in it.
  • Before sending a pull request for a new feature, you should first create an issue with [Proposal] in the title.
  • Please follow the PSR-2 Coding Style and PHP-FIG Naming Conventions.


Apache License

Copyright 2013-2014 Graham Campbell

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.