Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 2.8 KB

README.md

File metadata and controls

58 lines (38 loc) · 2.8 KB

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