Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Digital Ocean Bundle Laravel Package

ekyna/digital-ocean-bundle

View on GitHub
Deep Wiki
Context7

ekyna/digital-ocean-bundle

Deploy assets to Digital Ocean space CDN

Installation

Install using composer:

composer require ekyna/digital-ocean-bundle

Register the bundle:

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Ekyna\Bundle\DigitalOceanBundle\EkynaDigitalOceanBundle(),
        ];
    }
}

Add the configuration:

ekyna_digital_ocean:
    api:
        token: YOUR_API_TOKEN
    spaces:
        -
            name: my-do-cdn # Must match space name on Digital Ocean 
            region: ams3
            key: SPACE_ACCESS_KEY
            secret: SPACE_ACCESS_SECRET
    usage:
        bundles: my-do-cdn # The space to use for assets deployment

Usage

Spaces storages are available as League\Flysystem\Filesystem (v1) services :

<!-- You can inject 'my-do-cdn' filesystem service -->
<service id="Acme\Some\Service">
    <argument type="service">ekyna_digital_ocean.my_do_cdn.filesystem</argument>
</service>

Commands

You can deploy bundles assets to your space CDN by running the following command:

php bin/console ekyna:digital-ocean:assets:deploy

Warning: it purge the entire CDN cache.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle