承接 linkorb/database-manager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

linkorb/database-manager

最新稳定版本:v2.1.0

Composer 安装命令:

composer require linkorb/database-manager

包简介

Database Management utilities: connectivity, backups, fixtures, etc

README 文档

README

Database Manager helps developers manage their dev/test/prod databases.

Features:

  • Load database connection configuration
  • Instantiate PDO connections

Database Manager can be used both as a command-line utility as a PHP library.

Suggestions

Installation

Composer

Use this installation path if you wish to use Database Manager in your PHP project.

Add the following to your composer.json file, in the require section:

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

Then run composer update to install the new dependency

Git

Use this installation path if you wish to use Database Manager as a stand-alone utility.

Checkout the code from Github:

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:

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

Note that port key is optional.

Store your database in /share/config/database/[databasename].conf

Command-line options

bin/database-manager connection:config [dbname]

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

Examples

Please refer to the examples/ directory for:

  • Example database .conf file

Testing

Install phpunit and copy phpunit.xml.dist to phpunit.xml:

cp phpunit.xml.dist phpunit.xml

Type phpunit in terminal to run tests.

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/.

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.

License

Please check LICENSE.md for full license information

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!

统计信息

  • 总下载量: 87.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 9
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固