easybib / zf1module-installer
ZendFramework(1) 模块的安装程序(WIP)。
0.3.0
2013-09-06 16:03 UTC
Requires
- php: >=5.3.0
- composer-plugin-api: 1.0.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-14 13:07:34 UTC
README
这是一个工作进展中的项目 - 因此请小心处理!
它是如何工作的?
例如,你有一个名为 admin 的模块
你将以下 composer.json
文件放入此模块中
{
"name":"example/admin",
"description": "Admin module!",
"type":"zf1-module",
"authors":[
{
"name":"John Doe",
"email":"john@example.org"
}
],
"require": {
"php": ">=5.3.0",
"easybib/zf1module-installer": "*"
}
}
另一个重要部分是 easybib/zf1module-installer
。
在你的应用程序中,将你的模块作为依赖项添加
{
"name":"example/main",
"description": "My application",
"authors":[
{
"name":"John Doe",
"email":"john@example.org"
}
],
"require": {
"php": ">=5.3.0",
"example/admin": "*"
}
}
当你运行 php composer.phar install
时,admin
模块应该出现在你的模块文件夹中。