Download the PHP package bushbaby/flysystem-mysql-backup without Composer
On this page you can find all versions of the php package bushbaby/flysystem-mysql-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bushbaby/flysystem-mysql-backup
More information about bushbaby/flysystem-mysql-backup
Files in bushbaby/flysystem-mysql-backup
Package flysystem-mysql-backup
Short Description Utility to dump a MySql Database to an 'Flysystem' filesystem
License MIT
Homepage https://github.com/bushbaby/BsbFlysystemMysqlBackup
Informations about the package flysystem-mysql-backup
BsbFlysystemMysqlBackup
A small library capable of creating and persisting a Mysql dump into a Flysystem filesystem.
Dependancies;
Compatible with container-interop/container-interop but completely optional.
No wiring is provided as code but I do provide some example configuration. Factories are provided for needed services but you must write a factory for a Flysystem service (see provided example).
Installation
Usage
Programaticly
Factories (ContainerInterface)
If you choose to use the Factories to instanciate the service a config
service is expected to be registered within the Container. That service should contain an bsb_flysystem_mysql_backup
top level entry with the following keys.
- connection
- storage
- mysql_dump
The connection
key must be an array with doctrine connection parameters
or a doctrine connection name.
When you use a doctrine connection name it is assumed an implementation of Doctrine\Common\Persistence\ManagerRegistry
is registered within the Container. That service is used to retrieve the named connection.
I use this one.
Storage options
The storage
key must be an array containing
Mysqldump options
The mysql_dumper
must be an array see Mysqldump's dump settings for details.
A Factory for a Flysystem filesystem
All versions of flysystem-mysql-backup with dependencies
psr/container Version ^1.0
ifsnop/mysqldump-php Version ^2.1
league/flysystem Version ^1.0
zendframework/zend-stdlib Version ^2.7 || ^3.0
doctrine/dbal Version ^2.5