{"id":19001730,"url":"https://github.com/ledccn/notify","last_synced_at":"2026-03-11T07:35:02.107Z","repository":{"id":240379275,"uuid":"802472867","full_name":"ledccn/notify","owner":"ledccn","description":"Push notification SDK，适配为PHP8.3","archived":false,"fork":false,"pushed_at":"2024-05-18T15:45:49.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T15:55:58.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ledccn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-18T11:49:49.000Z","updated_at":"2024-08-08T08:32:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"6db607fd-f173-426e-a967-f2234c55d04c","html_url":"https://github.com/ledccn/notify","commit_stats":null,"previous_names":["ledccn/notify"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/notify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fnotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T18:12:30.187Z","updated_at":"2026-03-11T07:35:02.073Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notify\n\n\u003e [!NOTE]\n\u003e 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).\n\n[![tests](https://github.com/guanguans/notify/actions/workflows/tests.yml/badge.svg)](https://github.com/guanguans/notify/actions/workflows/tests.yml)\n[![check \u0026 fix styling](https://github.com/guanguans/notify/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/guanguans/notify/actions/workflows/php-cs-fixer.yml)\n[![codecov](https://codecov.io/gh/guanguans/notify/branch/main/graph/badge.svg?token=URGFAWS6S4)](https://codecov.io/gh/guanguans/notify)\n[![Latest Stable Version](https://poser.pugx.org/guanguans/notify/v)](https://packagist.org/packages/guanguans/notify)\n[![GitHub release (with filter)](https://img.shields.io/github/v/release/guanguans/notify)](https://github.com/guanguans/notify/releases)\n[![Total Downloads](https://poser.pugx.org/guanguans/notify/downloads)](https://packagist.org/packages/guanguans/notify)\n[![License](https://poser.pugx.org/guanguans/notify/license)](https://packagist.org/packages/guanguans/notify)\n\n## Platform support\n\n[//]: # (https://github.com/dschep/ntfy)\n* [AnPush](./src/AnPush/README.md)\n* [Bark](./src/Bark/README.md)\n* [Chanify](./src/Chanify/README.md)\n* [DingTalk](./src/DingTalk/README.md)\n* [Discord](./src/Discord/README.md)\n* [~~Gitter~~](./src/Gitter/README.md)\n* [GoogleChat](./src/GoogleChat/README.md)\n* [IGot](./src/IGot/README.md)\n* [Iyuu](./src/Iyuu/README.md)\n* [Lark](./src/Lark/README.md)\n* [Mattermost](./src/Mattermost/README.md)\n* [MicrosoftTeams](./src/MicrosoftTeams/README.md)\n* [~~NowPush~~](./src/NowPush/README.md)\n* [Ntfy](./src/Ntfy/README.md)\n* [Push](./src/Push/README.md)\n* [Pushback](./src/Pushback/README.md)\n* [PushBullet](./src/PushBullet/README.md)\n* [PushDeer](./src/PushDeer/README.md)\n* [Pushover](./src/Pushover/README.md)\n* [PushPlus](./src/PushPlus/README.md)\n* [QQ](./src/QQ/README.md)\n* [RocketChat](./src/RocketChat/README.md)\n* [ServerChan](./src/ServerChan/README.md)\n* [ShowdocPush](./src/ShowdocPush/README.md)\n* [SimplePush](./src/SimplePush/README.md)\n* [Slack](./src/Slack/README.md)\n* [Telegram](./src/Telegram/README.md)\n* [WeWork](./src/WeWork/README.md)\n* [WPush](./src/WPush/README.md)\n* [XiZhi](./src/XiZhi/README.md)\n* [YiFengChuanHua](./src/YiFengChuanHua/README.md)\n* [Zulip](./src/Zulip/README.md)\n\n## Related repository\n\n* [https://github.com/guanguans/laravel-exception-notify](https://github.com/guanguans/laravel-exception-notify)\n* [https://github.com/guanguans/yii-log-target](https://github.com/guanguans/yii-log-target)\n\n## Requirement\n\n* PHP \u003e= 8.2\n\n## Installation\n\n```bash\ncomposer require ledc/notify -v\n```\n\n## Usage example\n\n```php\n// 1. Create authenticator\n$authenticator = new Guanguans\\Notify\\DingTalk\\Authenticator(\n    'c44fec1ddaa8a833156efb77b7865d62ae13775418030d94d05da08bfca73',\n    // 'SECc32bb7345c0f73da2b9786f0f7dd5083bd768a29b82e6d460149d730eee51'\n);\n\n// 2. Create client\n$client = new Guanguans\\Notify\\DingTalk\\Client($authenticator);\n\n// 3. Create message\n$message = Guanguans\\Notify\\DingTalk\\Messages\\BtnsActionCardMessage::make([\n    'title' =\u003e 'This is title(keyword).',\n    'text' =\u003e 'This is text.',\n    // 'btnOrientation' =\u003e 1,\n    // 'btns' =\u003e [\n    //     [\n    //         'title' =\u003e 'This is title 1.',\n    //         'actionURL' =\u003e 'https://github.com/guanguans/notify',\n    //     ],\n    // ],\n])\n    -\u003ebtnOrientation(1)\n    -\u003eaddBtn([\n        'title' =\u003e 'This is title 2.',\n        'actionURL' =\u003e 'https://github.com/guanguans/notify',\n    ]);\n\n// 4. Send message\n$response = $client\n    // -\u003ebaseUri('base-uri')\n    // -\u003econnectTimeout(10)\n    // -\u003edebug(true)\n    // -\u003eproxy('http://127.0.0.1:1087')\n    // -\u003etimeout(30)\n    // -\u003everify(false)\n    // -\u003epush(\n    //     GuzzleHttp\\Middleware::log(\n    //         new Psr\\Log\\NullLogger,\n    //         new GuzzleHttp\\MessageFormatter(GuzzleHttp\\MessageFormatter::DEBUG)\n    //     ),\n    //     'log'\n    // )\n    // -\u003ebefore(\n    //     'log',\n    //     GuzzleHttp\\Middleware::mapRequest(\n    //         static fn (Psr\\Http\\Message\\RequestInterface $request) =\u003e $request\n    //     ),\n    // )\n    -\u003esend($message)\n    -\u003edump()\n    // -\u003ethrow()\n    -\u003ejson();\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n* [guanguans](https://github.com/guanguans)\n* [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fnotify/lists"}