sunshinecms / installers
此包已被弃用且不再维护。未建议替代包。
阳光CMS composer库安装程序
v1.0.0
2018-12-29 20:58 UTC
Requires
- php: >= 5.5.9
- composer-plugin-api: ^1.0.0
Requires (Dev)
- composer/composer: ^1.0
- phpunit/phpunit: >= 4.8.36
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2022-06-29 01:57:23 UTC
README
阳光CMS composer库安装程序。
描述
此包作为composer插件,用于下载和安装阳光CMS核心和扩展,并将它们放置到适合阳光CMS正确运行的目录结构中。
使用方法
您应在项目中包含sunshinecms/installers
并指定其type
。有关支持的类型和命名,请参阅下文。
这将把插件安装到网站根目录下的plugins/example/system/
。
{ "name": "example/sunshinecms-system-plugin", "type": "sunshinecms-plugin", "require": { "sunshinecms/installers": "^1.0" } }
然后,您应将您的包提交到Packagist。将来,阳光CMS可能会拥有自己的扩展仓库,因此您也需要将其提交到那里。
支持类型
类型 | 名称 | 位置 | 描述 |
---|---|---|---|
sunshinecms-core |
核心 | 核心项目的安装程序。仅用于向前兼容,目前不应使用。 | |
sunshinecms-*-pack |
包 | vendor/{$vendor}/{$name}/ |
插件和主题包的安装程序。必须包含其中包含的扩展类型。 |
sunshinecms-plugin |
插件 | plugins/{$vendor}/{$name}/ |
插件的安装程序。 |
sunshinecms-*-theme |
主题 | themes/{$type}/{$vendor}/{$name}/ |
主题的安装程序。它可以包含主题类型。如果没有指定,主题将是公共的。 |
包命名
- 包应遵循标准的Composer和Packagist约定。
- 名称将自动转换为
camel-case
。 - 如果存在,将自动移除前后缀单词
sunshinecms
。 - 如果存在,将自动移除类型名称。
示例
包类型 | 包名称 | 位置 |
---|---|---|
sunshinecms-plugin |
example/sunshinecms-system-plugin |
plugins/example/system/ |
sunshinecms-theme |
example/sunshinecms-responsive-theme |
themes/public/example/responsive/ |
sunshinecms-public-theme |
example/sunshinecms-responsive-theme |
themes/public/example/responsive/ |
sunshinecms-admin-theme |
example/sunshinecms-responsive-theme |
themes/admin/example/responsive/ |
版本控制
此库使用SemVer进行版本控制。有关可用的版本,请参阅此存储库的标签。
许可证
此库在GPLv3+许可证下授权。有关详细信息,请参阅LICENSE文件。