定制 syjust/sf-db-cmd 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Known issues

If you get the following message:

TTY mode requires /dev/tty to be read/writable.
  1. Ensure /dev/tty is writable in shell mode (echo foobar >> /dev/tty).
  2. Ensure you are on unix based OS (/ is the directory separator).
  3. Ensure PHP is able to write in /dev/tty (<?php is_writable('/dev/tty') ?>) If the latest test fails: add ':/dev/tty' to the open_basedir config in your php.ini.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-18