PHPackages                             toin0u/digitalocean-laravel - 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. [API Development](/categories/api)
4. /
5. toin0u/digitalocean-laravel

ActiveLibrary[API Development](/categories/api)

toin0u/digitalocean-laravel
===========================

DigitalOcean API PHP 5.3+ library for Laravel 4

0.2.0(12y ago)193971MITPHPPHP &gt;=5.3.0

Since Aug 18Pushed 11y ago3 watchersCompare

[ Source](https://github.com/toin0u/DigitalOcean-laravel)[ Packagist](https://packagist.org/packages/toin0u/digitalocean-laravel)[ Docs](https://github.com/toin0u/DigitalOcean-laravel)[ RSS](/packages/toin0u-digitalocean-laravel/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

DigitalOcean for Lavarel 4
==========================

[](#digitalocean-for-lavarel-4)

The *version 2* of the API will be available soon! Please visit [Laravel DigitalOcean](https://github.com/GrahamCampbell/Laravel-DigitalOcean) by [Graham Campbell](https://github.com/GrahamCampbell).

This package allows you to use [**DigitalOcean**](https://github.com/toin0u/DigitalOcean) in [**Laravel 4**](http://laravel.com/).

[![Latest Stable Version](https://camo.githubusercontent.com/2a497c2a3848c0afb832d91fd2970d67c0ae5526910d9157107d0c6039435d8e/68747470733a2f2f706f7365722e707567782e6f72672f746f696e30752f4469676974616c4f6365616e2d6c61726176656c2f762f737461626c652e706e67)](https://packagist.org/packages/toin0u/DigitalOcean-laravel)[![Total Downloads](https://camo.githubusercontent.com/65aba3353e4de8cc0c5846e2c84aaf086502fb8ad69c697653dcc7f5722c1694/68747470733a2f2f706f7365722e707567782e6f72672f746f696e30752f4469676974616c4f6365616e2d6c61726176656c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/toin0u/DigitalOcean-laravel)[![Build Status](https://camo.githubusercontent.com/b196a913fa7658467076964764af537d0174e47506fdd2aa76cab634e2525971/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746f696e30752f4469676974616c4f6365616e2d6c61726176656c2e706e67)](http://travis-ci.org/toin0u/DigitalOcean-laravel)[![Coverage Status](https://camo.githubusercontent.com/faea85a4d05401cab84dd24e6d507180a833bffc74804a5085ae43d02bc7cbd2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746f696e30752f4469676974616c4f6365616e2d6c61726176656c2f62616467652e706e67)](https://coveralls.io/r/toin0u/DigitalOcean-laravel)[![SensioLabsInsight](https://camo.githubusercontent.com/cb3a344c1737a06866f006ece13fa7fd472700e27290f65599db9e718ee58e6c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65306464636638332d316135632d343565652d613866622d3533646533343565656366652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e0ddcf83-1a5c-45ee-a8fb-53de345eecfe)

Installation
------------

[](#installation)

It can be found on [Packagist](https://packagist.org/packages/toin0u/digitalocean-laravel). The recommended way is through [composer](http://getcomposer.org).

Edit `compose.json` and add:

```
{
    "require": {
        "toin0u/digitalocean-laravel": "0.2.*"
    }
}
```

And install dependecies:

```
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
```

Configuration
-------------

[](#configuration)

Find the `providers` key in `app/config/app.php` and register the **DigitalOcean Service Provider**.

```
'providers' => array(
    // ...

    'Toin0u\DigitalOcean\DigitalOceanServiceProvider',
)
```

Find the `aliases` key in `app/config/app.php` and register the **DigitalOcean Facade**.

```
'aliases' => array(
    // ...

    'DigitalOcean' => 'Toin0u\DigitalOcean\DigitalOceanFacade',
)
```

You need to copy the config file into your project by running:

```
$ php artisan config:publish toin0u/digitalocean-laravel
```

Finally you need to edit `app/config/packages/toin0u/digitalocean-laravel/config.php` with your **client ID**and the **API Key**.

Usage
-----

[](#usage)

Use the [DigitalOcean API](https://github.com/toin0u/DigitalOcean#api):

```
// if you don't want to use the defaut adapter but rather Buzz
DigitalOcean::setAdapter(new \HttpAdapter\BuzzHttpAdapter());
$activeDroplets = DigitalOcean::droplets()->showAllActive();
var_dump($activeDroplets);

// object(stdClass)[61]
// public 'status' => string 'OK' (length=2)
// public 'droplets' =>
//     array (size=1)
//         0 =>
//             object(stdClass)[62]
//                 public 'id' => int 347553
//                 public 'name' => string 'foobar' (length=6)
//                 public 'image_id' => int 284212
//                 public 'size_id' => int 66
//                 public 'region_id' => int 4
//                 public 'backups_active' => boolean false
//                 public 'ip_address' => string '192.241.175.217' (length=15)
//                 public 'private_ip_address' => null
//                 public 'locked' => boolean false
//                 public 'status' => string 'active' (length=6)
//                 public 'created_at' => string '2013-01-07T01:37:21Z' (length=20)
```

Changelog
---------

[](#changelog)

[See the changelog file](https://github.com/toin0u/DigitalOcean-laravel/blob/master/CHANGELOG.md)

Support
-------

[](#support)

[Please open an issues in github](https://github.com/toin0u/DigitalOcean-laravel/issues)

Contributor Code of Conduct
---------------------------

[](#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](http:contributor-covenant.org), version 1.0.0, available at

License
-------

[](#license)

DigitalOcean-laravel is released under the MIT License. See the bundled [LICENSE](https://github.com/toin0u/DigitalOcean-laravel/blob/master/LICENSE) file for details.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Total

2

Last Release

4660d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37c3113877b1bf987ee92f02b70475450d873854be9bfd9b59adf35d4f3214b0?d=identicon)[toin0u](/maintainers/toin0u)

---

Top Contributors

[![toin0u](https://avatars.githubusercontent.com/u/672421?v=4)](https://github.com/toin0u "toin0u (24 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (5 commits)")

---

Tags

apilaravelvpsdigitaloceanCloud HostingSSD

### Embed Badge

![Health badge](/badges/toin0u-digitalocean-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/toin0u-digitalocean-laravel/health.svg)](https://phpackages.com/packages/toin0u-digitalocean-laravel)
```

###  Alternatives

[toin0u/digitalocean-v2

DigitalOcean API v2 client for PHP

7281.1M20](/packages/toin0u-digitalocean-v2)[toin0u/digitalocean

DigitalOcean API PHP 5.3+ library

15863.0k3](/packages/toin0u-digitalocean)[dunglas/digital-ocean-bundle

DigitalOcean API v2 client for Symfony and API Platform

312.5k](/packages/dunglas-digital-ocean-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
