pinktie/laravel-notifications-trello
Composer 安装命令:
composer require pinktie/laravel-notifications-trello
包简介
Laravel 5.x.x Notifications Channel for Trello
README 文档
README
PinkTie Technology Group
Laravel 5.x.x Notifications Channel for Trello
Create Trello cards with Laravel Notifications on Laravel 5.x.x
Contents
Installation
Install the package via composer:
composer require pinktie/laravel-notifications-trello
Setting up the Trello service
Add your Trello REST API Key to your config/services.php:
// config/services.php ... 'trello' => [ 'key' => env('TRELLO_API_KEY'), ], ...
Usage
Now you can use the channel in your via() method inside the notification:
use PinkTie\TrelloNotifications\TrelloChannel; use PinkTie\TrelloNotifications\TrelloMessage; use Illuminate\Notifications\Notification; class ProjectCreated extends Notification { public function via($notifiable) { return [TrelloChannel::class]; } public function toTrello($notifiable) { return TrelloMessage::create() ->name("Trello Card Name") ->description("This is the Trello card description") ->top() ->due('tomorrow') ->members('123456abc7890xyz'); } }
In order to let your Notification know which Trello user and Trello list you are targeting, add the routeNotificationForTrello method to your Notifiable model.
This method needs to return an array containing the access token of the authorized Trello user (if it's a private board) and the list ID of the Trello list to add the card to.
public function routeNotificationForTrello() { return [ 'token' => 'NotifiableToken', 'idList' => 'TrelloListId', ]; }
Available methods
name(''): Accepts a string value for the Trello card name.description(''): Accepts a string value for the Trello card description.top(): Moves the Trello card to the top.bottom(): Moves the Trello card to the bottom.position(''): Accepts an integer for a specific Trello card position.due(''): Accepts a string or DateTime object for the Trello card due date.members(''): Accepts a comma-seperated string list of member IDs to add to the card.
Changelog
Please see CHANGELOG for more information what has changed recently.
Support
If you discover any issues or would like to request addtional features, please use the GitHub issue tracker.
Security
If you discover any security related issues, please email support@pinktietech.com instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
pinktie/laravel-notifications-trello 适用场景与选型建议
pinktie/laravel-notifications-trello 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 549 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 08 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「notifications」 「trello」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pinktie/laravel-notifications-trello 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pinktie/laravel-notifications-trello 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pinktie/laravel-notifications-trello 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova package that adds a notification feed in your Nova app.
PHP Trello API Wrapper (fork for php7+) from https://github.com/ashwinks/Trello-API-PHP-Wrapper
A Laravel wrapper and facade package for the Trello API
Captures outgoing SMS notifications
PHP-based Trello API Wrapper, based on mattzuba/php-trello
Trello API v2 client
统计信息
- 总下载量: 549
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-15