ledc/notify
Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Iyuu、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).
Maintainers
Fund package maintenance!
Requires
- php: >=8.2
- ext-json: *
- ext-openssl: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^7.8
- guzzlehttp/uri-template: ^1.0
- symfony/options-resolver: ^7.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- brainmaestro/composer-git-hooks: ^2.8
- ergebnis/composer-normalize: ^2.42
- ergebnis/license: ^2.4
- ergebnis/php-cs-fixer-config: dev-main
- ergebnis/rector-rules: ^1.0
- friendsofphp/php-cs-fixer: ^3.56
- guanguans/ai-commit: dev-main
- guanguans/monorepo-builder-worker: ^1.4
- icanhazstring/composer-unused: ^0.8
- illuminate/collections: ^8.83 || ^9.0 || ^10.0 || ^11.0
- infection/extension-installer: ^0.1
- infection/infection: ^0.26
- maglnet/composer-require-checker: ^3.8 || ^4.0
- mockery/mockery: ^1.6
- pestphp/pest: ^1.23 || ^2.0
- pestphp/pest-plugin-faker: ^1.0 || ^2.0
- php-mock/php-mock-phpunit: ^2.10
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- rector/rector: ^1.0
- symfony/var-dumper: ^7.0
- vimeo/psalm: ^5.24
Suggests
- illuminate/collections: Required to use the method [Response::collect()].
- symfony/var-dumper: Required to use the the trait [WithDumpable].
Provides
None
Conflicts
None
Replaces
None
MIT 3528c94c8967e00eaa56338961317e9ca630e6e7
- guanguans <ityaozm.woop@gmail.com>
sdknotificationbotpushnotifynotifierpushoverqqslackpushbulletgittertelegram微信discorddingtalkMattermost企业微信simplepush钉钉larkweworkrocketchatzulip钉钉群机器人iyuuBarkServer酱息知chanifyserverChanxiZhi飞书群机器人飞书企业微信群机器人NtfygoogleChatpushPluspushBackiGotPushDeerQQ 频道机器人一封传话MicrosoftTeamsNowPushShowdocPushYiFengChuanHuaAnPushWPush
This package is auto-updated.
Last update: 2026-06-18 20:14:28 UTC
README
Note
Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Iyuu、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、Zulip).
👁 tests
👁 check & fix styling
👁 codecov
👁 Latest Stable Version
👁 GitHub release (with filter)
👁 Total Downloads
👁 License
Platform support
- AnPush
- Bark
- Chanify
- DingTalk
- Discord
- GoogleChat
- IGot
- Iyuu
- Lark
- Mattermost
- MicrosoftTeams
- Ntfy
- Push
- Pushback
- PushBullet
- PushDeer
- Pushover
- PushPlus
- RocketChat
- ServerChan
- ShowdocPush
- SimplePush
- Slack
- Telegram
- WeWork
- WPush
- XiZhi
- YiFengChuanHua
- Zulip
Related repository
Requirement
- PHP >= 8.2
Installation
composer require ledc/notify -v
Usage example
// 1. Create authenticator $authenticator = new Guanguans\Notify\DingTalk\Authenticator( 'c44fec1ddaa8a833156efb77b7865d62ae13775418030d94d05da08bfca73', // 'SECc32bb7345c0f73da2b9786f0f7dd5083bd768a29b82e6d460149d730eee51' ); // 2. Create client $client = new Guanguans\Notify\DingTalk\Client($authenticator); // 3. Create message $message = Guanguans\Notify\DingTalk\Messages\BtnsActionCardMessage::make([ 'title' => 'This is title(keyword).', 'text' => 'This is text.', // 'btnOrientation' => 1, // 'btns' => [ // [ // 'title' => 'This is title 1.', // 'actionURL' => 'https://github.com/guanguans/notify', // ], // ], ]) ->btnOrientation(1) ->addBtn([ 'title' => 'This is title 2.', 'actionURL' => 'https://github.com/guanguans/notify', ]); // 4. Send message $response = $client // ->baseUri('base-uri') // ->connectTimeout(10) // ->debug(true) // ->proxy('http://127.0.0.1:1087') // ->timeout(30) // ->verify(false) // ->push( // GuzzleHttp\Middleware::log( // new Psr\Log\NullLogger, // new GuzzleHttp\MessageFormatter(GuzzleHttp\MessageFormatter::DEBUG) // ), // 'log' // ) // ->before( // 'log', // GuzzleHttp\Middleware::mapRequest( // static fn (Psr\Http\Message\RequestInterface $request) => $request // ), // ) ->send($message) ->dump() // ->throw() ->json();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
