Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 803 Bytes

File metadata and controls

32 lines (25 loc) · 803 Bytes

BunnyCDN Storage

Flysystem is able to interact with BunnyCDN Storage servers. To configure this bundle for such usage, you can rely on adapters in the same way you would for other storages.

Installation

composer require platformcommunity/flysystem-bunnycdn

Usage

# config/packages/flysystem.yaml

services:
  bunny_client:
    class: PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNClient
    arguments:
      $storage_zone_name: 'storage-zone'
      $api_key: 'api-key'
      $region: '!php/const:PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNRegion::FALKENSTEIN'

flysystem:
    storages:
        bunny.storage:
            bunnycdn:
                client: 'bunny_client'
                pull_zone: 'https://testing.b-cdn.net/' # optional