Download the PHP package bjornjohansen/do-upgrade-plans without Composer

On this page you can find all versions of the php package bjornjohansen/do-upgrade-plans. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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

January 16, 2018 DigitalOcean released new pricing 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

composer create-project bjornjohansen/do-upgrade-plans

Run the upgrades

First you need a Personal Access Token with read and write access, which you can generate on the Applications & API page.

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

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.”


All versions of do-upgrade-plans with dependencies

PHP Build Version
Package Version
Requires nategood/httpful Version ^0.2.20
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bjornjohansen/do-upgrade-plans contains the following files

Loading the files please wait ....