blackforest / namespace-compat
Composer 命名空间兼容
1.1
2015-04-07 09:44 UTC
Requires
- php: >=5.3
- composer-plugin-api: 1.0.0
Requires (Dev)
- blackforest/namespace-compat-tests: *
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-09-14 17:42:41 UTC
README
此Composer插件提供命名空间兼容功能。在运行Composer后,此插件编译了一个新文件。新文件提供了旧命名空间到新命名空间的映射。
使用方法
-
在你的composer.json中定义对此包的要求。
{ "require": { "blackforest/namespace-compat": "~1.0" } }
-
在你的composer.json中添加此包。
{ "extra": { "namespace-compat": { "OldNamespace": "NewNamespace" } } }
-
运行Composer Update:
php composer.phar update
测试
你可以使用blackforest/namespace-compat-tests测试此插件。