2017 © Pedro Peláez
 

library storage-flysystem

Provides Baleen Migrations with FlyStorage class that uses FlySystem.

image

baleen/storage-flysystem

Provides Baleen Migrations with FlyStorage class that uses FlySystem.

  • Monday, November 23, 2015
  • by gabriel.somoza
  • Repository
  • 2 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

This package is part of the Baleen ecosystem. It uses the League's Flysystem to store the migration status into a file., (*1)

Status

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight Packagist, (*2)

Author License, (*3)

NB!: This project is still an early release. Please do not use in production-critical environments. Refer to the LICENSE for more information., (*4)

Installation (Composer)

Installation with Composer is simple:, (*5)

composer require baleen/storage-flysystem

Usage

The following example illustrates how you can use FlyStorage together with Flysystem's Local adapter., (*6)

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., (*7)

The Versions

23/11 2015

dev-ddd-refactor

dev-ddd-refactor

Provides Baleen Migrations with FlyStorage class that uses FlySystem.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gabriel Somoza

11/11 2015