Skip to content

Flysystem Adapter Chain, so the same method can be called in multiple adapters

License

Notifications You must be signed in to change notification settings

brofist-team/flysystem-adapter-chain

 
 

Repository files navigation

Flysystem Adapter Chain

Adapter Chain for the League\Flysystem filesystem abstraction, so the same method can be called in multiple adapters

Code information:

Build Status Coverage Status Code Coverage Scrutinizer Code Climate Issue Count Scrutinizer Code Quality StyleCI

Package information:

Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status

Usage

<?php

use League\Flysystem\Filesystem;
use Brofist\Flysystem\Adapter\Chain;

$chain = new Chain([$localAdapter]);
$chain->append($ftpAdapter);

$filesystem = new Filesystem($chain);
$filesystem->write('path', 'contents'); // will write locally and to the ftp

Installing

composer require brofist/filesystem-adapter-chain

Issues/Features proposals

Here is the issue tracker.

License

MIT

Authors

About

Flysystem Adapter Chain, so the same method can be called in multiple adapters

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%