Download the PHP package laravel-notification-channels/pivotal-tracker without Composer
On this page you can find all versions of the php package laravel-notification-channels/pivotal-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/pivotal-tracker
More information about laravel-notification-channels/pivotal-tracker
Files in laravel-notification-channels/pivotal-tracker
Package pivotal-tracker
Short Description Pivotal Tracker Laravel Notifications driver
License MIT
Homepage https://github.com/laravel-notification-channels/pivotal-tracker
Informations about the package pivotal-tracker
Pivotal Tracker notification channel for Laravel 5.3
This package makes it easy to create stories using pivotal-tracker with Laravel 5.3
Deprecated
This channel is deprecated and no longer maintained. As such, it will not be updated. If you would like to revive it, please create an issue in the new channels repo.
Contents
- Installation
- Setting up the pivotal-tracker service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Usage
Now you can use the channel in your via() method inside the notification:
use NotificationChannels\PivotalTracker\PivotalTrackerChannel;
use NotificationChannels\PivotalTracker\PivotalTrackerMessage;
use Illuminate\Notifications\Notification;
class AnApplicationEvent extends Notification
{
public function via($notifiable)
{
return [PivotalTrackerChannel::class];
}
public function toPivotalTracker($notifiable)
{
return (new PivotalTrackerMessage('Something just occurred!'))
->description('This is a test for a notification via Pivotal Tracker.')
->type('bug')
->labels(['a_chore', 'just_a_test']);
}
}
In order to let your Notification know which pivotal-tracker user and project you are targeting, add the routeNotificationForpivotal-tracker method to your Notifiable model.
This method needs to return an array containing the access token of the authorized Pivotal Tracker user and the project ID to add the story to.
public function routeNotificationForpivotal-tracker()
{
return [
'token' => 'NotifiableToken',
'projectId' => 'Thepivotal-trackerProjectID'
];
}
Available methods
name(''): Accepts a string value for the story name.description(''): Accepts a string value for the story description.type(''): Accepts a string value for the story type (feature|bug|chore)labels([]): Accepts an array of strings representing the story labels.- Alternatively you can pass the labels as arguments.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Nassif Bourguig
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of pivotal-tracker with dependencies
guzzlehttp/guzzle Version ~6.0
illuminate/notifications Version ^5.3
illuminate/support Version ^5.3
illuminate/events Version ^5.3