Download the PHP package dunglas/digital-ocean-bundle without Composer
On this page you can find all versions of the php package dunglas/digital-ocean-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dunglas/digital-ocean-bundle
More information about dunglas/digital-ocean-bundle
Files in dunglas/digital-ocean-bundle
Package digital-ocean-bundle
Short Description DigitalOcean API v2 client for Symfony and API Platform
License MIT
Informations about the package digital-ocean-bundle
DigitalOcean Bundle for Symfony and API Platform
DunglasDigitalOceanBundle allows using the DigitalOcean API from your Symfony and API Platform projects. It registers the DigitalOcean PHP API Client as a Symfony service.
If you aren't yet a DigitalOcean user, use this affiliate link to get $100 in free credit!
If you want to deploy your Symfony apps to DigitalOcean, checkout this tutorial.
Example
Of course, you can also inject the client service into your commands, messenger handlers and any other service.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
The previous command installs the bundle, Symfony HttpClient and the dependencies it needs
to "provide" psr/http-client-implementation
and psr/http-factory-implementation
.
Alternatively, you can use any other implementation of these interfaces such as Guzzle.
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Configuration
This configuration automatically registers the following autowiring aliases:
If you have only one client, you can use this shortcut:
Use the DigitalOceanV2\Client
type to inject the default DigitalOcean client.
Credits
This bundle is brought to you by Kévin Dunglas. It is sponsored by Les-Tilleuls.coop.
All versions of digital-ocean-bundle with dependencies
symfony/config Version ^4.4 || ^5.3
symfony/dependency-injection Version ^4.4 || ^5.3
symfony/http-kernel Version ^4.4 || ^5.3
toin0u/digitalocean-v2 Version ^4.3