Download the PHP package mirko-pagliai/cakephp-database-backup without Composer

On this page you can find all versions of the php package mirko-pagliai/cakephp-database-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cakephp-database-backup

cakephp-database-backup

CI codecov Codacy Badge CodeFactor

DatabaseBackup is a CakePHP plugin to export, import and manage database backups. Currently, the plugin supports MySql, Postgres and Sqlite databases.

Did you like this plugin? Its development requires a lot of time for me. Please consider the possibility of making a donation: even a coffee is enough! Thank you.

Requirements

DatabaseBackup requires:

Optionally, if you want to handle compressed backups, bzip2 and gzip are also required.

The installation of these binaries may vary depending on your operating system.

Installation

You can install the plugin via composer:

Then you have to load the plugin. For more information on how to load the plugin, please refer to the CakePHP documentation.

You can execute the shell command to enable the plugin:

This would update your application's bootstrap method.

Package versions and installation based on CakePHP/PHP version

Branch Status Requires CakePHP Requires PHP
3.1.x In development
3.0.x Current branch ^5.2.10 >=8.4
2.15.x Abandoned on November 5, 2026 ^5.0 >=8.1
2.14.x Abandoned on May 30, 2025 ^5.0 >=8.1
tag cakephp4 Abandoned on January 5, 2024, and roughly coincides with what 2.12.3 version was ^4.0 >=7.4.0
tag cakephp3 Abandoned April 29, 2021, and roughly coincides with what 2.8.5 version was ^3.5.1 >=5.6 <7.4

You are free to use the cakephp4 and cakephp3 tags, even by downloading the source codes from the attached assets, but their functioning is no longer guaranteed, especially regarding old dependencies that may no longer be available.

Configuration and How to use

See our documentation.

If you are upgrading from the 2.x branch, see Migration from branch 2.15 to 3.0.

Before opening an issue, check this list of common issues.

Testing

Unlike previous versions, with the 3.x branch, thanks to the Mockery's overloading and the (external) component Process that actually takes care of executing the commands to export/import the databases, normally the tests do not really use the database drivers and do not write or read files on the filesystem (i.e., everything is simulated).

The only exception is given by the class DatabaseBackup\Test\TestCase\Utility\BackupExportAndImportTest, which however does not belong to the testsuite executed by default (it is therefore an optional test) and is marked with the attribute #[CoversNothing].

This test class, when executed, will test a real database export and import, using the pdo_mysql, pdo_pgsql and pdo_sqlite PHP extensions, that is all the drivers and databases supported by the plugin.

You can test the class directly or the configured real-drivers testsuite (see available testsuites):

Continuous integration (CI) workflows must be run with highest/lowest dependencies and "without"/"only with" real drivers and databases.

Running tests with real database drivers (Docker)

Some tests require real database drivers and system binaries (e.g. mysqldump, pg_dump, pg_restore) and therefore depend on the local environment configuration.

However, running these tests reliably requires properly configured database servers and matching system binaries.

For this reason, Docker can be used to provide a predefined and controlled environment in which real-drivers tests can be executed consistently.

Running real-drivers tests using Docker

From the project root:

This setup runs the real-drivers test suite against real MySQL/MariaDB and PostgreSQL servers, using their corresponding dump/restore binaries, in a controlled environment.

Versioning

For transparency and insight into our release cycle and to maintain backward compatibility, DatabaseBackup will be maintained under the Semantic Versioning guidelines.


All versions of cakephp-database-backup with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
cakephp/cakephp Version ^5.2.10
league/container Version ^4.2.3|^5.1
symfony/filesystem Version ^7.2|^8.0
symfony/process Version ^7.4.5|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mirko-pagliai/cakephp-database-backup contains the following files

Loading the files please wait ...