Download the PHP package stojko/dbservice without Composer
On this page you can find all versions of the php package stojko/dbservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package dbservice
Database backup library
Library for database backup. To be able to use this service, it's required to have mysqldump installed on server, because this library is actually calling mysqldump under the hood. Also, php bzip2 extension needs to be enabled, if we want to compress sql file.
How to use
Intended to be used as a service.
use Stojko\DbService\DbService;
$dbConfig = [
'hostname' => 'mysql',
'username' => 'root',
'password' => 'test23',
'database' => 'test_database',
'backupDir' => getcwd().'/backup/', // Full path of backup directory. Will be created, if it doesn't exist
'days' => 14, // How many days we want to keep backups. Default is 14.
'bzip2' => true, // Compress backup with bzip2 compression. Default is false. Php ext bzip2 required.
];
$dbService = new DbService($dbConfig);
$dbService->backupDb();
All versions of dbservice with dependencies
PHP Build Version
Package Version
No informations.
The package stojko/dbservice contains the following files
Loading the files please wait ....