PHPackages                             bjornjohansen/do-upgrade-plans - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bjornjohansen/do-upgrade-plans

ActiveProject[Utility &amp; Helpers](/categories/utility)

bjornjohansen/do-upgrade-plans
==============================

Upgrade your DigitalOcean droplets to better plans with the same cost.

0.1.3(8y ago)617GPL-3.0-or-laterPHP

Since Jan 19Pushed 8y agoCompare

[ Source](https://github.com/bjornjohansen/do-upgrade-plans)[ Packagist](https://packagist.org/packages/bjornjohansen/do-upgrade-plans)[ RSS](/packages/bjornjohansen-do-upgrade-plans/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

do-upgrade-plans
================

[](#do-upgrade-plans)

Upgrade your DigitalOcean droplets to better plans with the same cost.

This script will use the DigitalOcean API to upgrade all of your droplets to better plans with the same cost if available.

Background
----------

[](#background)

January 16, 2018 DigitalOcean released [new pricing plans](https://blog.digitalocean.com/new-droplet-plans/) where they basically doubled the RAM for the same price of the old plans. But to get the benefits for your existing droplets, you have to upgrade all of your existing droplets in a process that involves shutting them down, selecting the new plan, waiting for the upgrade to happen and power on the droplets again. I have tens of droplets and had no intention of doing this manually, so I wrote a script to use the DigitalOcean API to automate the upgrades.

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

[](#installation)

`composer create-project bjornjohansen/do-upgrade-plans`

Run the upgrades
----------------

[](#run-the-upgrades)

First you need a Personal Access Token with read and write access, which you can generate on the [Applications &amp; API page](https://cloud.digitalocean.com/settings/api/tokens).

Copy your access token and set it as an environment variable: `export DO_ACCESS_TOKEN=`.

Run the script: `php -f do-upgrade-plans/upgrade-plans.php`

Watch as your droplets get upgraded.

In case an error happens, your droplets will power cycle, to make sure they are in a running state. This happened to 3 of my droplets. Further investigation (trying to upgrade manually) revealed that “Due to high demand and capacity restrictions we have temporarily disabled this size in this region.”

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

3035d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba0d2e358a8e380c07e3d8d40dd9f58169de7bf544bcb4608ef734918882d9e3?d=identicon)[bjornjohansen](/maintainers/bjornjohansen)

---

Top Contributors

[![bjornjohansen](https://avatars.githubusercontent.com/u/399136?v=4)](https://github.com/bjornjohansen "bjornjohansen (1 commits)")

### Embed Badge

![Health badge](/badges/bjornjohansen-do-upgrade-plans/health.svg)

```
[![Health](https://phpackages.com/badges/bjornjohansen-do-upgrade-plans/health.svg)](https://phpackages.com/packages/bjornjohansen-do-upgrade-plans)
```

###  Alternatives

[cretueusebiu/valet-windows

A more enjoyable local development experience for Windows.

920115.0k](/packages/cretueusebiu-valet-windows)[urbanairship/urbanairship

Urban Airship PHP Library

38606.2k2](/packages/urbanairship-urbanairship)[genesisweb/valet-linux-plus

Advanced local development experience for Linux.

18215.3k](/packages/genesisweb-valet-linux-plus)[yuansfer/yuansfer-php-sdk

Yuansfer PHP SDK

117.7k](/packages/yuansfer-yuansfer-php-sdk)

PHPackages © 2026

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