xantios/maple
Composer 安装命令:
composer require xantios/maple
包简介
A TaskRunner with the sweet taste of Maple
README 文档
README
Welcome to Maple!
Maple providers the task runner you always wanted but never dared to ask for.
Notice for production usage
Maple is current in active development (say beta state) production use can be done if you're one of the brave (if you are please let me know how you like it in production!)
Installation per project
Just your regular dependency should do the trick!
composer require xantios/maple
After running composer add a maple-config.php to the work directory of your project and run:
vendor/bin/maple
Global installation
If you use Maple a lot, maybe install it globally.
composer global require xantios/maple should do the trick!
when you run the maple command make sure there is a config in your current directory.
Configuration
The configuration file is a plain PHP array, it is pretty self-explanatory
<?php return [ // Host to listen on (defaults to 127.0.0.1) # 'host' => '0.0.0.0', // Port for web interface to listen on (defaults to 8100) # 'port' => 8100, // Verbose logging 'verbose' => true, // Tasks available 'tasks' => [ [ 'name' => "Run webpack", 'retries' => 0, 'autostart' => true, 'cmd' => 'npm run dev' ], [ 'name' => "Some process that keeps on exiting but needs to be running", 'retries' => -1, 'autostart' => true, 'cmd' => 'ping -t 3 8.8.8.8 ; sleep 5' ], // Run multiple tasks back-to-back [ 'name' => 'Jan-1', 'after' => 'Jan-2', 'autostart' => true, 'cmd' => 'sleep 1', ], [ 'name' => 'Jan-2', 'after' => 'Jan-3', 'cmd' => 'sleep 1', ], [ 'name' => 'Jan-3', 'after' => '', 'cmd' => 'sleep 1', ] ] ];
Webinterface
There is a dashboard available at http://localhost:8100 that looks something like this:
Contributing in code
Thank you for considering contributing, feel free to PR anything you like or create an issue if you think you have a great idea!
Contributing in other means
Thank you emails, donations, photos of how your life changed by a piece of software and bags of coffee beans are welcome at git@xantios.nl
Security Vulnerabilities
If you discover a security vulnerability within Maple, please send an e-mail to Xantios Krugor git@xantios.nl All security vulnerabilities will be promptly addressed.
License
Maple is open-sourced software licensed under the MIT license.
xantios/maple 适用场景与选型建议
xantios/maple 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 19, 最近一次更新时间为 2021 年 01 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 xantios/maple 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 xantios/maple 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-19
