kba-team/phinx-cake2
Composer 安装命令:
composer require kba-team/phinx-cake2
包简介
Easy usage of Phinx with CakePHP2
README 文档
README
Phinx is the default tool for database migrations in CakePHP3 and CakePHP4. Phinx can be used as a standalone tool, so it is possible to use it with CakePHP2. This project makes usage of Phinx with CakePHP2 less complicated.
Prerequisites
- PHP >= 7.0
- CakePHP2 installed via composer
- Mysql (no other DB supported a the moment)
- Migrations in folder Config/Migrations
- Seeds in folder Config/Seeds
What does it do?
This package provides a helper script and a default Phinx config file for usage with you CakePHP2 project.
By using the helper script it is not necessary to create a Phinx configuration for your project.
Installation
composer require kba-team/phinx-cake2
Usage
Usage: phinx-cake2.sh [command] [arguments] [options]
Example
./vendor/bin/phinx-cake2.sh migrate
If you want to migrate a plugin's migration.
PLUGIN=<plugin_name> ./vendor/bin/phinx-cake2.sh migrate
In case the plugin uses its own database, you need to set the following in a file called phinx.php in the plugin's Config directory.
Configure::write('phinx.datasource', "<datasource name>");
kba-team/phinx-cake2 适用场景与选型建议
kba-team/phinx-cake2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.15k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kba-team/phinx-cake2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kba-team/phinx-cake2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-16