baleen / storage-flysystem
This package is abandoned and no longer maintained.
No replacement package was suggested.
Provides Baleen Migrations with FlyStorage class that uses FlySystem.
0.2.0
2015-11-11 19:25 UTC
Requires
- baleen/migrations: ^0.9
- league/flysystem: ^1.0
Requires (Dev)
- escapestudios/symfony2-coding-standard: ~2.0
- mockery/mockery: ^0.9.4
- phploc/phploc: ^2.1
- phpmd/phpmd: ^2.3
- phpunit/phpunit: *
- sebastian/phpcpd: ^2.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2022-05-02 15:20:15 UTC
README
This package is part of the Baleen ecosystem. It uses the League's Flysystem to store the migration status into a file.
Status
NB!: This project is still an early release. Please do not use in production-critical environments. Refer to the LICENSE for more information.
Installation (Composer)
Installation with Composer is simple:
composer require baleen/storage-flysystem
Usage
The following example illustrates how you can use FlyStorage together with Flysystem's Local adapter.
use League\Flysystem\Filesystem; use League\Flysystem\Adapter\Local; $adapter = new Local(__DIR__.'/path/to/root'); $filesystem = new Filesystem($adapter); $storage = new FlyStorage($filesystem); // default filename is ".baleen_versions" // and then, for example: $migratedVersions = $storage->fetchAll(); // another example (save a new migrated version): $v = new \Baleen\Migrations\Version('newVersion', true); $storage->save($v);
LICENSE
MIT - for more details please refer to LICENSE at the root directory.