itk-dev / database-bundle
A Symfony bundle with useful database stuff
1.3.1
2020-04-11 15:47 UTC
Requires
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10
- squizlabs/php_codesniffer: ^3.2
README
A Symfony bundle with useful database stuff.
Installation
Require the bundle with composer
:
composer require itk-dev/database-bundle "^1.2"
Enable the bundle:
<?php // Symfony 2 and 3. // app/AppKernel.php public function registerBundles() { $bundles = [ // … new ItkDev\DatabaseBundle\ItkDevDatabaseBundle(), // … ]; }
<?php // Symfony 4 and 5. // config/bundles.php return [ // … ItkDev\DatabaseBundle\ItkDevDatabaseBundle::class => ['all' => true], // … ];
Usage
Dump database:
bin/console itk-dev:database:dump
Open database from command line:
bin/console itk-dev:database:cli