Push notification sdk(Bark、Chanify、DingTalk、Discord、Email、FeiShu、Gitter、Google Chat、iGot、Logger、Mattermost、Microsoft Teams、Now Push、Ntfy、Pushback、Push、PushDeer、Pushover、PushPlus、QQ Channel Bot、Rocket Chat、ServerChan、Showdoc Push、Slack、Telegram、Webhook、WeWork、XiZhi、YiFengChuanHua、Zulip).
- Bark
- Chanify
- DingTalk
- Discord
Gitter- GoogleChat
- IGot
- Lark
- Mattermost
- MicrosoftTeams
- NowPush
- Ntfy
- Push
- Pushback
- Pushover
- Pushplus
- RocketChat
- ServerChan
- ShowdocPush
- Slack
- Telegram
- WeWork
- XiZhi
- YiFengChuanHua
- Zulip
- PHP >= 7.4
composer require guanguans/notify -v
// 1. Create authenticator
$authenticator = new \Guanguans\Notify\Bark\Authenticator('yetwhxBm7wCBSUTjeqh');
// 2. Create client
$client = new \Guanguans\Notify\Bark\Client($authenticator);
// 3. Create message
$message = \Guanguans\Notify\Bark\Messages\Message::make([
'title' => 'This is title.',
'body' => 'This is body.',
// 'copy' => 'This is copy.',
// 'url' => 'https://github.com/guanguans/notify',
// 'sound' => 'bell',
// 'group' => 'group',
// 'icon' => 'https://avatars0.githubusercontent.com/u/25671453?s=200&v=4',
// 'level' => 'passive',
// 'badge' => 5,
// 'isArchive' => 1,
// 'autoCopy' => 1,
// 'automaticallyCopy' => 1,
])
->copy('This is copy.')
->url('https://github.com/guanguans/notify');
// 4. Send message
$response = $client
// ->baseUri('The server address of your own deployment.')
// ->timeout(30)
// ->verify(false)
->send($message)
->dump()
// ->throw()
->json();
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.