mothership-ec/cog
最新稳定版本:4.16.0
Composer 安装命令:
composer require mothership-ec/cog
包简介
Mothership's PHP5 framework for building modular systems
关键字:
README 文档
README
What is Cog?
Cog is Mothership's Symfony-based PHP framework.
What services does Cog define?
Cog defines the following services on the service container. Don't overwrite any of these in your application unless you want to replace the functionality of this service with your own class.
class.loaderThis is the Composer autoloader class which is based on Symfony's autoloader.http.request.masterThis is theMessage\Cog\HTTP\Requestinstance for the current master request.bootstrap.loaderThis is an instance ofMessage\Cog\Bootstrap\Loader.app.loaderThis is the instance of the application loader class, which will be the installation's sublass ofMessage\Cog\Application\Loader.module.loaderThis is an instance ofMessage\Cog\Module\Loader.
What global events does Cog fire?
terminateThis is the very last thing that happens for any Cog request. Use this event for stopping debug timers; garbage collection; data logging; etc.cog.load.successFired once Cog is ready to use (but before modules have been loaded). All of Cog's event handlers and services will be setup and registered by this point.
Running tests
To execute all tests run phpunit in the root of the site.
You can run tests for individual components by running phpunit --testsuite <componentname>
e.g phpunit --testsuite Routing or phpunit --testsuite Application
mothership-ec/cog 适用场景与选型建议
mothership-ec/cog 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.99k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 02 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「cog」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mothership-ec/cog 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mothership-ec/cog 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mothership-ec/cog 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Laravel Ownership simplify management of Eloquent model's owner.
Laravel Eloquent boolean & timestamp flagged attributes behavior.
PHP Unicode library
Composer personal web interface. Manage Laravel dependencies without switching to command line!
Laravel wrapper for PHP YouTrack SDK.
统计信息
- 总下载量: 2.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 20
- 依赖项目数: 16
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2015-02-24