adamgaskins/deployed
Composer 安装命令:
composer require adamgaskins/deployed
包简介
A package for Laravel apps to send beautiful deployment notifications on Slack.
README 文档
README
An opinionated deployment notification generator for Laravel applications.
Installation
You can install the package via composer:
composer require adamgaskins/deployed
You should publish the config file so you can customize the buttons sent with the notification:
php artisan vendor:publish --provider="AdamGaskins\Deployed\DeployedServiceProvider" --tag="deployed-config"
Below are the contents of the published config file. You'll want to at least update vendor/app in the Changelog path to point to your app, and make sure you have a white, transparent logo PNG uploaded.
return [ 'links' => [ 'Changelog' => 'https://github.com/vendor/app/blob/v{appVersion}/CHANGELOG.md', 'Visit Site' => '{appUrl}', ], 'logo' => public_path('img/logo.png'), 'slack' => [ 'webhook' => env('DEPLOYED_SLACK_WEBHOOK') ], 'default_emoji' => '✨', 'emojis' => [ 'feature' => '✨', 'bug' => '🐛', 'docs' => '📝', 'tests' => '✅' ] ];
You'll also want to add a version field to your config/app.php file. This is how Deployed obtains the version number.
[
'name' => env('APP_NAME'),
'version' => '1.0.0'
]
Finally, add the slack webhook to your .env file
DEPLOYED_SLACK_WEBHOOK=https://hooks.slack.com/services/xxx/xxx/xxx
Usage
Run this command after a successful deploy to send a beautiful slack notification with a changelog.
php artisan deployed --notify
Deployed will parse the CHANGELOG.md in the root of your application. Each version is expected to begin with a heading and contain a list of changes. For each change in the list, put the type (feature/bug/etc.) in bold at the beginning of the line. Here is an example of a changelog entry that generates the notification at the top of this readme:
### Version 10.3.23 > Released 09/10/2021 - **FEATURE:** Added **Duplicate** button to product editor. - **BUG:** Deleting a product with no image but with image dimensions specified causes an error. - **DOCS:** Updated `README.md` to document new deployment steps. - **TESTS:** Added tests for new **Duplicate** button. ...
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
adamgaskins/deployed 适用场景与选型建议
adamgaskins/deployed 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.52k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 09 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「deployed」 「adamgaskins」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 adamgaskins/deployed 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 adamgaskins/deployed 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 adamgaskins/deployed 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Interactiv4 - Magento Deployed Package - Factory Adapter Magento - To be used along with interactiv4/factory-adapter-magento package.
Interactiv4 - Magento Deployed Package - DataObject Adapter Magento - To be used along with interactiv4/data-object-adapter-magento package.
Interactiv4 - Magento Deployed Package - Checker Adapter Magento - To be used along with interactiv4/checker-adapter-magento package.
Interactiv4 - Magento Deployed Package - Processor Adapter Magento - To be used along with interactiv4/processor-adapter-magento package.
Interactiv4 - Git Hooks Deployed Package - prepare-commit-msg
A classy package to generate SVG barcodes for the web.
统计信息
- 总下载量: 1.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-11
