PHPackages                             dartdigital/dart-flysystem-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. dartdigital/dart-flysystem-provider

ActiveCraft-plugin[File &amp; Storage](/categories/file-storage)

dartdigital/dart-flysystem-provider
===================================

Library for environment specific Craft Filesystems.

v1.0.0(1y ago)217proprietaryPHP

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dartdigital/dart-flysystem-provider)[ Packagist](https://packagist.org/packages/dartdigital/dart-flysystem-provider)[ Docs](https://d-art-digital.de)[ RSS](/packages/dartdigital-dart-flysystem-provider/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (4)Used By (0)

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
--------

[](#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
------------------

[](#available-adapters)

Adaptersupportedclear cacheCloudflare - R2✅❌ (planned)Cloudflare - Stream❌ (planned)-AWS S3✅❌ (planned)DigitalOcean Spaces✅❌ (planned)FTP✅❌ (planned)Google Cloud Storage✅❌ (planned)All Flysystem Adapters✅----

Installation
------------

[](#installation)

### Install:

[](#install)

`composer require dartdigital/dart-flysystem-provider`

### Config

[](#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

[](#craft-storage-providerphp)

```
// config/dart-flysystem-provider.php
