Download the PHP package yeora/db-syncer without Composer

On this page you can find all versions of the php package yeora/db-syncer. 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 db-syncer

Other languages

Brief description

DbSyncer is a tool that is supposed to facilitate the synchronization between databases. As middleware DbSyncer uses the package ifsnop/mysqldump-php.

DbSyncer offers the possibility to perform a 1-to-1 synchronization with database schema and database as well as a synchronization which is configurable on table and column level.

With DbSyncer, for example, the production database can be transferred to a local development database, without the need for further manual adjustments in the data are necessary. For example:

Requirements

Installation & Setup (Quickstart)

The installation of DbSyncer is done via Composer using:

Now a configuration file must be created from which, among other things, the access data is taken. For a simple standard configuration file the following command can be used:

DbSyncer then creates a DbSyncer.yaml in the project root directory. configuration file which looks like the following:

In this simple case only a syncFrom and a syncTo are preconfigured. A syncFrom contains all necessary information of a database FROM which synchronization is to be performed. A syncTo contains all necessary information of a database TO which synchronization is to be performed. Any number of syncFroms and syncTos can be configured.

The next step is to enter the access data. The key values password and username can also be removed completely from the configuration file. The credentials are then interactively when starting the synchronizer.

After the access data have been entered or the key values have been removed, the actual synchronization process can be started. the actual synchronization process can be started. To do this, the following command must be executed:

If only one syncFrom and one syncTo are configured and the access data have been specified, the synchronization takes place automatically without further user action.

If multiple syncFroms are configured, you will be asked to select one interactively. If more than one syncTos are configured, you will be asked to select one or more interactively.

This completes the basic setup of a complete synchronization of a database A to a database B is completed.

Complete configuration with comments

The following is a configuration with all configuration options is given.


All versions of db-syncer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ifsnop/mysqldump-php Version ^2.9
symfony/console Version ^6.1
symfony/yaml Version ^6.1
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 yeora/db-syncer contains the following files

Loading the files please wait ....