arvodia/grouper
Composer 安装命令:
composer require arvodia/grouper
包简介
Composer plugin, package and tasks manager by group
README 文档
README
Composer plugin, package and tasks manager by group
Grouper is a composer plug-in that allows you to place the packages in a group, to install or uninstall the packages of a group with a single command.
Grouper scripts are called tasks they can copy files, directories or shrink css and js files.
The advantage of grouper with other CSS and JavaScript supports, there is no need to run any additional script. resource files are automatically updated and minified after composer update
Contents
- Feature
- Installation
- Example
- Commands
- Tasks
- Configuration
- Uninstall
- Changelog
- Git clone
- Contact
- License
Feature
- Grouping packages in a single name
- Activate a group install all these packages and run task
- Tasks to be performed for groups and packages
- File mapping and css, js minification
- File patcher
- File, folder Remove
- Interactive commands
- Interactive initialization of the grouper.json file
- Interactive group ans task manager
- Stylized display messages
Installation
Integrate grouper into your project with composer.
composer require arvodia/grouper
initialize grouper
composer grouper:init
Example
Managing CSS and JavaScript, in this example we will group bootstraps, bootstrap-admin, jquery, popper and font-awesome, in a deul group.
and also use grouper tasks to create public/src folder, copy and minify only necessary files.
You can also do a lot of other things with grouping.
Step 1
install grouper and minify
composer require arvodia/grouper
Step 2
add repositories to your project, dans le fichier composer. json add these lines :
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
Step 3
Copy the example file to your working directory
cp vendor/arvodia/grouper/src/Resources/examples/grouper.json .
Step 4
and finally there is more to activate the group.
composer grouper:group arvodia-asset activate
You will find in the public/src folder all the assets you will need for your website.
Note
Explanation of some parameters in the file grouper.json, you notice that the name of the tasks is suffixed by -overwrite it is to overwrite the files for the update, and the option "uninstall": true it is to remove add files, with the deactivation group.
Commands
composer grouper:group- Group Manager command : activate, deactivate, create, delete add and remove
composer grouper:groups- Shows information about all available groups.
composer grouper:init- Creates a basic grouper.json file in composer working directory.
composer grouper:task- Add, run or delete the task setting for the group or package.
Tasks
Tasks can be added interactively to group packages or on the group itself.
Tasks type
There are three types of tasks :
- file-mapping
- file-mapping-overwrite
- css-minifying
- css-minifying-overwrite
- js-minifying
- js-minifying-overwrite
- file-patcher
- file-dir-remove
Each one of these tasks needs two parameters: source and destination
- source group
- The path compared to the location of composer.json
- source package
- The path relative to the location of the package itself
- destination
- The path compared to the location of composer.json
Packages Tasks
They are executed if the group is activated and during the following events :
- post-package-install
- post-package-update
Groups Tasks
They are executed only at the end of the activation of a group. They are only executed at the end of the post update|install if one of these packages has been checked.
Tasks Option
For instemp only one option uninstall if it is enabled, after disabling group, all added files or folders will be deleted.
Configuration
Configuration are placed in a grouper.json, but do not change this file manually, rather use commands grouper for the management of you groups.
Uninstall
The configuration file grouper.json, it will be deleted if you will uninstall grouper package.
Changelog
A changelog, the changelog, the list of changes, presented in descending order of changes, and grouped by version. link : CHANGELOG From version 1.0.5 the commit text represents the working version.
Git clone
$ git clone https://github.com/arvodia/grouper.git
Contact
arvodia@hotmail.com - EURL ARVODIA
License
MIT License
arvodia/grouper 适用场景与选型建议
arvodia/grouper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 333 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「plugin」 「composer」 「Tasks」 「groups」 「packages」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 arvodia/grouper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 arvodia/grouper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 arvodia/grouper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Plugin for YOURLS. Default tools to use in some laemmi plugins
Alfabank REST API integration
统计信息
- 总下载量: 333
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-07
