Download the PHP package ixnode/bash-db-dumper without Composer

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

Bash DB Dumper

Release PHP LICENSE

This tool helps you to dump db fixtures from given database and can import existing db fixtures. Credentials and configurations are read from an .env file.

Installation

Within a PHP project (composer)

Outside the project

Preparation

Add at least the following configuration variables to your .env file:

See .env.dist file for other examples and configuration variables like:

MySQL dump settings: Views will be imported after importing all tables to be sure all needed tables are exists

#

Example: MYSQLDUMP_VIEWS=view_1,view_2

=

Overview of configuration

Variable Description Example
MYSQLDUMP_DATABASE_URL Contains the database credentials. mysql://user:pass@localhost:3306/db?serverVersion=8.0
MYSQLDUMP_IGNORED_TABLES Contains a comma-separated list of tables which are to be ignored by the dump command. Asterisk can be used to specify several tables at once. table1,table2,cache_*
MYSQLDUMP_FILTERED_TABLES Used to filter the content of tables. As an example only export data that is not deleted or is hidden (deleted = 0 AND hidden = 0). table3:"deleted = 0 AND hidden = 0",table4:"deleted = 0 AND hidden = 0"
$MYSQLDUMP_FILTERED_TABLES_DELETED_HIDDEN A shortcut for MYSQLDUMP_FILTERED_TABLES with --where="deleted = 0 AND hidden = 0". Contains a comma-separated list of tables to be filtered. table3,table4
MYSQLDUMP_TABLES_NO_DATA Contains a comma-separated list of tables from which no data should be dumped. Asterisk can be used to specify several tables at once. table5,table6_*
MYSQLDUMP_TABLES_ONLY_DATA Contains a comma-separated list of tables from which no structure of tables should be dumped. Asterisk can be used to specify several tables at once. table7,table8_*
MYSQLDUMP_VIEWS Contains a comma-separated list of views. Views will be imported after the tables are imported. Asterisk can be used to specify several tables at once. view1,view2_*

Dump tables into db fixtures

Via composer

Cloned project

All dumps are then located in ./fixtures/db/*.sql.

Import existing db fixtures located in ./fixtures/db/*.sql into database

Via composer

Cloned project

Show help

Shows the parameters and arguments of the tool.

Use debug mode

The command only shows the commands and does not execute them:

Via composer

Cloned project

Show last log

Update version

License

This tool is licensed under the MIT License - see the LICENSE.md file for details


All versions of bash-db-dumper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ixnode/bash-version-manager Version ^0.1.5
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 ixnode/bash-db-dumper contains the following files

Loading the files please wait ....