syjust/sf-db-cmd
最新稳定版本:1.1.1
Composer 安装命令:
composer require syjust/sf-db-cmd
包简介
Symfony DB command
README 文档
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.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-18