2017 © Pedro Peláez
 

library database-manager

Database Management utilities: connectivity, backups, fixtures, etc

image

linkorb/database-manager

Database Management utilities: connectivity, backups, fixtures, etc

  • Saturday, February 17, 2018
  • by joostfaassen
  • Repository
  • 9 Watchers
  • 3 Stars
  • 5,317 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Database Manager

Database Manager helps developers manage their dev/test/prod databases., (*1)

Features:, (*2)

  • Load database connection configuration
  • Instantiate PDO connections

Database Manager can be used both as a command-line utility as a PHP library., (*3)

Suggestions

  • https://github.com/dbtk/schema-loader - to load schemas
  • https://github.com/linkorb/haigha - to load alice fixtures

Installation

Composer

Use this installation path if you wish to use Database Manager in your PHP project., (*4)

Add the following to your composer.json file, in the require section:, (*5)

"linkorb/database-manager": "~2.0"

Then run composer update to install the new dependency, (*6)

Git

Use this installation path if you wish to use Database Manager as a stand-alone utility., (*7)

Checkout the code from Github:, (*8)

git clone git@github.com:linkorb/database-manager.git
cd database-manager
composer install # install dependencies
./bin/database-manager # list command-line options

Database configuration files

Database connection information is stored in a simple .ini file. Here's a working example:, (*9)

name = mydb
server = localhost
port = 3306
username = my_username
password = my_password

Note that port key is optional., (*10)

Store your database in /share/config/database/[databasename].conf, (*11)

Command-line options

bin/database-manager connection:config [dbname], (*12)

This will load the configuration from /share/config/database/[databasename].conf, and display it on the console., (*13)

Examples

Please refer to the examples/ directory for:, (*14)

  • Example database .conf file

Testing

Install phpunit and copy phpunit.xml.dist to phpunit.xml:, (*15)

cp phpunit.xml.dist phpunit.xml

Type phpunit in terminal to run tests., (*16)

Contributing

Ready to build and improve on this repo? Excellent! Go ahead and fork/clone this repo and we're looking forward to your pull requests! Be sure to update the unit tests in tests/., (*17)

If you are unable to implement changes you like yourself, don't hesitate to open a new issue report so that we or others may take care of it., (*18)

License

Please check LICENSE.md for full license information, (*19)

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering., (*20)

Btw, we're hiring!, (*21)

The Versions

17/02 2018

dev-master

9999999-dev http://www.github.com/linkorb/database-manager

Database Management utilities: connectivity, backups, fixtures, etc

  Sources   Download

MIT

The Requires

 

The Development Requires

database api php postgresql doctrine fixtures pdo mysql backup

17/02 2018

v2.1.0

2.1.0.0 http://www.github.com/linkorb/database-manager

Database Management utilities: connectivity, backups, fixtures, etc

  Sources   Download

MIT

The Development Requires

database api php postgresql doctrine fixtures pdo mysql backup

16/08 2015

v2.0.0

2.0.0.0 http://www.github.com/linkorb/database-manager

Database Management utilities: connectivity, backups, fixtures, etc

  Sources   Download

MIT

The Requires

 

The Development Requires

database api php postgresql doctrine fixtures pdo mysql backup

27/07 2015

v1.0.1

1.0.1.0 http://www.github.com/linkorb/database-manager

Database Management utilities: connectivity, backups, fixtures, etc

  Sources   Download

MIT

The Requires

 

The Development Requires

database api php postgresql doctrine fixtures pdo mysql backup

14/09 2014

v1.0.0

1.0.0.0 http://www.github.com/linkorb/database-manager

Database Management utilities: connectivity, backups, fixtures, etc

  Sources   Download

MIT

The Requires

 

The Development Requires

database api php postgresql doctrine fixtures pdo mysql backup