Download the PHP package dartdigital/dart-flysystem-provider without Composer
On this page you can find all versions of the php package dartdigital/dart-flysystem-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dartdigital/dart-flysystem-provider
More information about dartdigital/dart-flysystem-provider
Files in dartdigital/dart-flysystem-provider
Package dart-flysystem-provider
Short Description Library for environment specific Craft Filesystems.
License proprietary
Homepage https://d-art-digital.de
Informations about the package dart-flysystem-provider
Dart Flysystem Provider
A Craft CMS plugin that provides a flexible file storage system per environment. It allows you to use different storage solutions depending on the environment, such as local file storage during development and Amazon S3 in production. Additionally, any Flysystem adapter can be integrated directly into Craft CMS without requiring further configuration. This ensures seamless adaptability to a variety of storage solutions, making it easy to tailor the setup to specific project needs or infrastructure requirements. The plugin streamlines the process of managing file storage across environments, enhancing workflow efficiency and scalability.
Features
- Environment-Specific Storage: Store files locally or in the cloud (e.g., S3) depending on your environment.
- Seamless Craft CMS Integration: Easy to integrate into existing Craft projects.
- Flexible and Extensible: Customizable for various storage requirements.
Available Adapters
Adapter | supported | clear cache |
---|---|---|
Cloudflare - R2 | ✅ | ❌ (planned) |
Cloudflare - Stream | ❌ (planned) | - |
AWS S3 | ✅ | ❌ (planned) |
DigitalOcean Spaces | ✅ | ❌ (planned) |
FTP | ✅ | ❌ (planned) |
Google Cloud Storage | ✅ | ❌ (planned) |
All Flysystem Adapters | ✅ | - |
Installation
Install:
composer require dartdigital/dart-flysystem-provider
Config
Add the configuration file dart-flysystem-provider.php
to the config
folder.
This configuration file defines the storage adapter for the Craft Storage Provider plugin. It supports multiple environments, allowing for flexible storage solutions such as using local storage in development and Amazon S3 in production.
The names of the adapterConfigs can be freely chosen. They only need to be selected in the Craft CMS backend.
craft-storage-provider.php
.env
Craft CMS - Setup
- Create new Filesystem
- Select
DartFlysystemStorage
as type. - Choose a Configuration from
./config/dart-flysystem-provider.php
Plugin Development
Prerequisites
- Docker Compose: To set up a simple local development environment.
Setup
Follow these steps to set up the local development environment:
Open: http://localhost
Minio (S3) Setup
Go to: http://localhost:9001/login Username: admin Password: minio-admin
- create Bucket
- create Access Key
- make Bucket public available
Testing Plugin Changes
Make changes to the code in the src directory. Run the following command to reflect the changes in the CMS:
Support
If you have any questions or encounter issues, please open an Issue in this repository! 🎉
All versions of dart-flysystem-provider with dependencies
ext-intl Version *
ext-zip Version *
craftcms/cms Version ^5.3.0
craftcms/flysystem Version ^2.0
league/flysystem Version ^3.0
league/flysystem-aws-s3-v3 Version ^3.0.0
league/flysystem-ftp Version ^3.0.0
league/flysystem-google-cloud-storage Version ^3
monolog/monolog Version ^3.8
phpstan/phpstan Version ^2.0
symfony/dotenv Version ^7.2
symfony/phpunit-bridge Version ^7.2
symfony/http-client Version ^v6.4.0