jezzis/mysqlsyncer
Composer 安装命令:
composer require jezzis/mysqlsyncer
包简介
This package provides a easy way to synchronize database structure to laravel
README 文档
README
This tool provide an easy way to synchronize database structure including tables, views, functions, procedures for Laravel 5.
Installation
- In order to install mysql-syncer, just add
"jezzis/mysqlsyncer":"dev-master"
to your composer.json. Then run composer install or composer update.
- In your
config/app.phpadd
Jezzis\MysqlSyncer\MysqlSyncerServiceProvider::class
Configuration
If you want to customize the base path of the sql file, please copy src/config.php to laravel project config directory, rename it to msyncer.php
return [ 'sql_path' => './', // sql file base path where MySQL-Syncer is looking for. 'driver' => 'mysql', // connection driver, currently only supports MySQL. ];
Usage
run the command in console:
# php artisan db:sync --drop <file>
Params
- file: The file path of the sql file, without .sql extension
Options
- --drop: allow drop columns, keys
Troubleshooting
Grant select privilege on mysql.func and mysql.proc to make sure the tools can fetch the definition of functions & procedure.
License
mysql-syncer is free software distributed under the terms of the MIT license.
Contribution guidelines
Support follows PSR-1 and PSR-4 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.
jezzis/mysqlsyncer 适用场景与选型建议
jezzis/mysqlsyncer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 56 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「laravel」 「synchronize」 「illuminate」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jezzis/mysqlsyncer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jezzis/mysqlsyncer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jezzis/mysqlsyncer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Synchronise two directories.
A PSR-7 compatible library for making CRUD API endpoints
PHP module for MySql database
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-23