Download the PHP package vrajroham/laravel-flock-notification without Composer
On this page you can find all versions of the php package vrajroham/laravel-flock-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vrajroham/laravel-flock-notification
More information about vrajroham/laravel-flock-notification
Files in vrajroham/laravel-flock-notification
Package laravel-flock-notification
Short Description Laravel Flock Notification Channel
License MIT
Homepage https://github.com/vrajroham/laravel-flock-notification
Informations about the package laravel-flock-notification
Laravel Flock Notification Channel
This package makes it easy to send notifications using Flock with Laravel 5.3+.
Contents
- Installation
- Setting up the Flock service
- Usage
- Available Message methods
- Examples
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Install this package with Composer:
composer require vrajroham/laravel-flock-notification
Register the ServiceProvider in your config/app.php (If you are using Laravel < 5.5):
Vrajroham\LaravelFlockNotification\FlockServiceProvider::class,
Setting up the flock service
Create incoming webhook by going to https://admin/flock.com or by choosing Manage your team in Flock desktop app.
For more information see the flock documentation to create incoming webhook.
Usage
You can now send messages in Flock Group by creating a FlockMessage:
- Add
routeNotificationForFlock()
toApp\User
model
Available Message methods
Complete message and attachment schema can be found at Flock Message Object and Flock Attachment Object
- content(
$string
) - flockml(
$string
) //FlockML as attachment - notification(
$string
) - sendAs(
$senderName
,$profileImageUrl
) -
attachments(
callback
)- title(
$string
) - description(
$string
) - color(
$string
) - url(
$url
) - id(
$string
) - forward(
$boolean
) - views(
callback
)- widget(
$source
,$height
,$width
) - html(
$inlineHtmlString
,$height
,$width
) - flockml(
$flockMLString
) - image(
callback
)- original(
$url
,$height
,$width
) - thumbnail(
$url
,$height
,$width
) - filename(
$filename
)
- original(
- widget(
-
downloads(
array
) - buttons(
array
)
- title(
Examples
Text as contents
Change sender name and image
Change message color
Change notification text for mobile application
Website as widget
Buttons
Image as attachment
Download Link
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 more information about contributors.
Credits
- Vaibhavraj Roham
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-flock-notification with dependencies
illuminate/notifications Version >=7
illuminate/support Version >=7