chris13/autoregister-classmap-plugin
Composer 安装命令:
composer require chris13/autoregister-classmap-plugin
包简介
Plugin composer to register external source code as PSR4.
README 文档
README
This composer plugin allow to register external source code in the autoload of composer from your project
Installation
Step 1: Enable the Plugin
Before downloading it you need to update your composer.json file with the following:
"extra": "chris-autoregister-classmap": { "path" : "path/to/modules", "filename" : ".module.yml" } }
Path : Directory where you store all your external source code (module)
Filename : The file where you have the namespace and the source directory of your module (it can be a hidden file or not)
Step 2: Download the Plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
$ composer require chris13/autoregister-classmap-plugin "~1"
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
In each external source code (module) directory that you want registered, you need to a YML file containing the namespace and the source directory of your bundle.
namespace: "App\\Module\\Bundle\\ExampleBundle\\" source_dir: "src/"
Tests
Run Test in the plugin :
$ phpunit --debug --testsuite All
chris13/autoregister-classmap-plugin 适用场景与选型建议
chris13/autoregister-classmap-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 217 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 01 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「composer」 「autoregister classmap」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chris13/autoregister-classmap-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chris13/autoregister-classmap-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chris13/autoregister-classmap-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Command-line tool to check for ambiguous class names with Composer's generated class map.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
HookPress is a Laravel package that uses Composer hooks to automatically discover, filter, and cache classes, traits, and interfaces in your application
Simple ASCII output of array data
Generate a Composer repository from installed WordPress plugins and themes.
统计信息
- 总下载量: 217
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2016-01-27