syjust / sf-db-cmd
Symfony DB command
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/syjust/sf-db-cmd
Requires
- php: >=8.2
- doctrine/orm: ^3.2
- symfony/console: ^7.1
- symfony/dependency-injection: ^7.1
- symfony/doctrine-bridge: ^7.1
- symfony/http-kernel: ^7.1
- symfony/process: ^7.1
- symfony/service-contracts: ^3.5
README
Description
A copy / adaptation of laravel/framework DbCommand
- used to easily access your DB with a command line interface,
- based on symfony/console, symfony/process & doctrine/orm libraries.
Installation
First, add the dependency in your project.
composer require syjust/sf-db-cmd
Then add the following line in your config/bundles.php file.
// ... Syjust\SfDbCmd\DbCommandBundle::class => ['all' => true], // ...
Usage
# connecting interactively into the database
php bin/console db
Limitations
This command was only tested with pdo_mysql & pdo_sqlite at this time in interactive mode at this time.
Contributions
- First, please use conventional commit,
- then, submit your Pull Request onto the GitHub Repo,
- and we will see 😋.
Known issues
If you get the following message:
TTY mode requires /dev/tty to be read/writable.
- Ensure
/dev/ttyis writable in shell mode (echo foobar >> /dev/tty). - Ensure you are on unix based OS (
/is the directory separator). - Ensure PHP is able to write in
/dev/tty(<?php is_writable('/dev/tty') ?>) If the latest test fails: add ':/dev/tty' to theopen_basedirconfig in yourphp.ini.