softavis/flysystem-cloudflare-bundle

Symfony bundle for implementing flysystem cloudflare adapter

0.1.2 2024-05-15 05:58 UTC

This package is auto-updated.

Last update: 2024-12-15 07:22:22 UTC


README

flysystem-cloudflare-bundle is a Symfony bundle integrating the Flysystem and Cloudflare Images API into Symfony applications.

Installation

flysystem-cloudflare-bundle requires PHP 7.2+ and Symfony 5.4+.

You can install the bundle using Symfony Flex:

composer require softavis/flysystem-cloudflare-bundle

Basic usage

Configuration are already configured with league/flysystem-bundle, just change adapter to 'cloudflare' where you need it

# config/packages/flysystem.yaml

flysystem:
  storages:
    default.storage:
      adapter: 'cloudflare'
      options:
        token: <your-cloudflare-access-token>
        accountId: <your-cloudflare-account-id>
        accountHash: <your-cloudflare-account-hash>
        variantName: public # Variant name use it by default

Security Issues