Statamic Pixxio Flysystem is a Statamic addon that does something pretty neat.
- Provide a Flysystem Adapter for Pixxio
- Exclude specific directories from the asset-container.
Pixxio Flysystem is a commercial addon - you must purchase a license via the Statamic Marketplace to use it in a production environment.
composer require visuellverstehen/statamic-pixxio-flysystem
'disks' => [
'pixxio' => [
'driver' => 'pixxio',
'api_key' => env('PIXXIO_API_KEY'),
'refresh_token' => env('PIXXIO_REFRESH_TOKEN'),
'endpoint' => env('PIXXIO_ENDPOINT'),
],
],
php artisan migrate
Add alt
, copyright
and description
fields to the asset-container blueprint.
php artisan pixxio:sync
If you wish to only import newly added files you can use the --new
option.
php artisan pixxio:sync --new
In order to keep the database updated schedule a task that runs synchronization script regularly.
php artisan vendor:publish --provider="VV\PixxioFlysystem\ServiceProvider" --tag="flysystem-pixxio-config"
Exclude certain directories in config/flysystem-pixxio.php
'exclude' => [
'directories' => [
'/home',
],
],
- Simply create an Asset-Container with pixxio as your driver.