knplabs/rad-fixtures-load
最新稳定版本:1.6.1
Composer 安装命令:
composer require knplabs/rad-fixtures-load
包简介
A command to load them all
README 文档
README
Unfortunately we decided to not maintain this project anymore (see why). If you want to mark another package as a replacement for this one please send an email to hello@knplabs.com.
Rapid Application Development : Fixtures Load
A command to load them all
This library uses the awesome nelmio/alice library.
Official maintainers:
Installation
composer require --dev knplabs/rad-fixtures-load:~1.0
class AppKernel { function registerBundles() { $bundles = array( //... new Knp\Rad\FixturesLoad\Bundle\FixturesLoadBundle(), //... ); //... return $bundles; } }
Usages
Inside your bundle, you have to store your Alice fixtures files into Resources/fixtures/orm.
Load fixtures of all bundles
Just run the command
app/console rad:fixtures:load
Or if you need both resetting your schema, just add -r option
app/console rad:fixtures:load -r
Load fixtures of specific bundles
I've got two bundles, App and Api.
app/console rad:fixtures:load -b App -b Api
The order is important. Fixtures will be loaded following this order.
Use file filtering
If I run this command
app/console rad:fixtures:load -f dev
All files finishing with .dev.yml will be loaded. And just those files.
You can also chain filters.
app/console rad:fixtures:load -f dev -f test
In this case, order doesn't have any importance.
Use Alice provider or Alice processor
You just have to tag your service with knp_rad_fixtures_load.provider or knp_rad_fixtures_load.processor.
my_bundle.my_provider: class: My\Provider tags: - { name: knp_rad_fixtures_load.provider } my_bundle.my_processor: class: My\Processor # implements Nelmio\Alice\ProcessorInterface tags: - { name: knp_rad_fixtures_load.processor }
knplabs/rad-fixtures-load 适用场景与选型建议
knplabs/rad-fixtures-load 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 80.93k 次下载、GitHub Stars 达 26, 最近一次更新时间为 2015 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「fixtures」 「Symfony2」 「command」 「load」 「alice」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 knplabs/rad-fixtures-load 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 knplabs/rad-fixtures-load 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 knplabs/rad-fixtures-load 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Wrapper for exec and it's results
Symfony bundle to monitor and execute commands
Testing object factory for PHP
Testing object factory for PHP
Shell command module for PHP.
Plugin to compare fixtures with live DB tables
统计信息
- 总下载量: 80.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 26
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-18