onesite / notifier
Send notification v1.0.1
Installs: 1 907
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 3
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.5
- onesite/core: ^1.0
- twilio/sdk: ^5.34
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-01-19 23:29:37 UTC
README
This package send notifications. Package is allowing send notifications with firebase, telegram, twilio,...
Installation
Install MakeResource through Composer.
"require": {
"onesite/notifier": "~1.0"
}
Using the package
Send notification with Firebase
<?php
use GuzzleHttp\Psr7\Response;
use OneSite\Notifier\Firebase;
/**
* @var Response $response
*/
$response = $this->notify->send(env('NOTIFIER_FIREBASE_TO_DEVICE'), [
'title' => 'Test send to Device',
'description' => 'Test send to Device',
'type' => 'test_device'
]);