Skip to content

Commit

Permalink
chore: update .lintmdrc and README files
Browse files Browse the repository at this point in the history
- Updated .lintmdrc to exclude 'src/' directory.
- Updated links in README files to point to corresponding directories in 'src/' instead of external links.
  • Loading branch information
guanguans committed Feb 27, 2024
1 parent 6293ae2 commit 1d06211
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 103 deletions.
1 change: 0 additions & 1 deletion .lintmdrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"excludeFiles": [
"src/",
"tests/",
"vendor/",
"./CHANGELOG.md"
Expand Down
73 changes: 35 additions & 38 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,32 @@

## 平台支持

* [Bark](https://github.com/Finb/Bark)
* [Chanify](https://github.com/chanify/chanify-ios)
* [钉钉群机器人](https://developers.dingtalk.com/document/app/custom-robot-access)
* [Discord](https://discord.com/developers/docs/resources/webhook#edit-webhook-message)
* [邮件](https://symfony.com/doc/current/mailer.html)
* [飞书群机器人](https://www.feishu.cn/hc/zh-CN/articles/360024984973)
* [Gitter](https://developer.gitter.im/docs/messages-resource)
* [Google Chat](https://developers.google.com/hangouts/chat/how-tos/webhooks)
* [iGot](http://hellyw.com/#/)
* [Logger](https://github.com/php-fig/log)
* [Mattermost](https://api.mattermost.com)
* [Microsoft Teams](https://www.microsoft.com/zh-cn/microsoft-teams/teams-for-work)
* [Now Push](https://nowpush.io/api-docs/)
* [Ntfy](https://ntfy.sh/)
* [Pushback](https://pushback.io/docs/getting-started)
* [Push](https://docs.push.techulus.com/api-documentation)
* [PushDeer](http://pushdeer.com)
* [Pushover](https://pushover.net)
* [Pushplus](https://pushplus.hxtrip.com/index)
* [QQ 频道机器人](https://bot.q.qq.com/wiki/develop/api/openapi/message/post_messages.html)
* [Rocket Chat](https://docs.rocket.chat/guides/administration/admin-panel/integrations)
* [Server 酱](https://sct.ftqq.com)
* [ShowdocPush](https://push.showdoc.com.cn/#/)
* [Slack](https://api.slack.com/messaging/webhooks)
* [Telegram](https://core.telegram.org/bots/api#sendmessage)
* Webhook
* [企业微信群机器人](https://open.work.weixin.qq.com/api/doc/90000/90136/91770)
* [息知](https://xz.qqoq.net/#/index)
* [一封传话](https://www.phprm.com/push/h5/)
* [Zulip](https://zulip.com/api/send-message)
* [Bark](./src/Bark/README.md)
* [Chanify](./src/Chanify/README.md)
* [DingTalk](./src/DingTalk/README.md)
* [Discord](./src/Discord/README.md)
* [Gitter](./src/Gitter/README.md)
* [GoogleChat](./src/GoogleChat/README.md)
* [IGot](./src/IGot/README.md)
* [Lark](./src/Lark/README.md)
* [Mattermost](./src/Mattermost/README.md)
* [MicrosoftTeams](./src/MicrosoftTeams/README.md)
* [NowPush](./src/NowPush/README.md)
* [Ntfy](./src/Ntfy/README.md)
* [Push](./src/Push/README.md)
* [Pushback](./src/Pushback/README.md)
* [Pushover](./src/Pushover/README.md)
* [Pushplus](./src/Pushplus/README.md)
* [QQ](./src/QQ/README.md)
* [RocketChat](./src/RocketChat/README.md)
* [ServerChan](./src/ServerChan/README.md)
* [ShowdocPush](./src/ShowdocPush/README.md)
* [Slack](./src/Slack/README.md)
* [Telegram](./src/Telegram/README.md)
* [WeWork](./src/WeWork/README.md)
* [XiZhi](./src/XiZhi/README.md)
* [YiFengChuanHua](./src/YiFengChuanHua/README.md)
* [Zulip](./src/Zulip/README.md)

## 环境要求

Expand All @@ -60,19 +56,21 @@
composer require guanguans/notify -v
```

## 使用

<details>
<summary><b>Bark</b></summary>
## 使用示例

```php
$authenticator = new Guanguans\Notify\Bark\Authenticator('yetwhxBm7wCBSUTjeqh');
$client = new Guanguans\Notify\Bark\Client($authenticator);
// 1. 创建认证器
$authenticator = new \Guanguans\Notify\Bark\Authenticator('yetwhxBm7wCBSUTjeqh');

// 2. 创建客户端
$client = new \Guanguans\Notify\Bark\Client($authenticator);

// 3. 创建并且发送消息
$response = $client
// ->verify(false)
// ->timeout(30)
// ->baseUri('The server address of your own deployment.')
->send(Guanguans\Notify\Bark\Messages\Message::make([
->send(\Guanguans\Notify\Bark\Messages\Message::make([
'title' => 'This is title.',
'body' => 'This is body.',
'copy' => 'This is copy.',
Expand All @@ -89,7 +87,6 @@ $response = $client
// ->dump()
->throw();
```
</details>

## 测试

Expand Down
73 changes: 35 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,32 @@

## Platform support

* [Bark](https://github.com/Finb/Bark)
* [Chanify](https://github.com/chanify/chanify-ios)
* [DingTalk](https://developers.dingtalk.com/document/app/custom-robot-access)
* [Discord](https://discord.com/developers/docs/resources/webhook#edit-webhook-message)
* [Email](https://symfony.com/doc/current/mailer.html)
* [FeiShu](https://www.feishu.cn/hc/zh-CN/articles/360024984973)
* [Gitter](https://developer.gitter.im/docs/messages-resource)
* [Google Chat](https://developers.google.com/hangouts/chat/how-tos/webhooks)
* [iGot](http://hellyw.com/#/)
* [Logger](https://github.com/php-fig/log)
* [Mattermost](https://api.mattermost.com)
* [Microsoft Teams](https://www.microsoft.com/zh-cn/microsoft-teams/teams-for-work)
* [Now Push](https://nowpush.io/api-docs/)
* [Ntfy](https://ntfy.sh/)
* [Pushback](https://pushback.io/docs/getting-started)
* [Push](https://docs.push.techulus.com/api-documentation)
* [PushDeer](http://pushdeer.com)
* [Pushover](https://pushover.net)
* [PushPlus](https://pushplus.hxtrip.com/index)
* [QQ Channel Bot](https://bot.q.qq.com/wiki/develop/api/openapi/message/post_messages.html)
* [Rocket Chat](https://docs.rocket.chat/guides/administration/admin-panel/integrations)
* [ServerChan](https://sct.ftqq.com)
* [ShowdocPush](https://push.showdoc.com.cn/#/)
* [Slack](https://api.slack.com/messaging/webhooks)
* [Telegram](https://core.telegram.org/bots/api#sendmessage)
* Webhook
* [WeWork](https://open.work.weixin.qq.com/api/doc/90000/90136/91770)
* [XiZhi](https://xz.qqoq.net/#/index)
* [YiFengChuanHua](https://www.phprm.com/push/h5/)
* [Zulip](https://zulip.com/api/send-message)
* [Bark](./src/Bark/README.md)
* [Chanify](./src/Chanify/README.md)
* [DingTalk](./src/DingTalk/README.md)
* [Discord](./src/Discord/README.md)
* [Gitter](./src/Gitter/README.md)
* [GoogleChat](./src/GoogleChat/README.md)
* [IGot](./src/IGot/README.md)
* [Lark](./src/Lark/README.md)
* [Mattermost](./src/Mattermost/README.md)
* [MicrosoftTeams](./src/MicrosoftTeams/README.md)
* [NowPush](./src/NowPush/README.md)
* [Ntfy](./src/Ntfy/README.md)
* [Push](./src/Push/README.md)
* [Pushback](./src/Pushback/README.md)
* [Pushover](./src/Pushover/README.md)
* [Pushplus](./src/Pushplus/README.md)
* [QQ](./src/QQ/README.md)
* [RocketChat](./src/RocketChat/README.md)
* [ServerChan](./src/ServerChan/README.md)
* [ShowdocPush](./src/ShowdocPush/README.md)
* [Slack](./src/Slack/README.md)
* [Telegram](./src/Telegram/README.md)
* [WeWork](./src/WeWork/README.md)
* [XiZhi](./src/XiZhi/README.md)
* [YiFengChuanHua](./src/YiFengChuanHua/README.md)
* [Zulip](./src/Zulip/README.md)

## Requirement

Expand All @@ -60,19 +56,21 @@
composer require guanguans/notify -v
```

## Usage

<details>
<summary><b>Bark</b></summary>
## Usage example

```php
$authenticator = new Guanguans\Notify\Bark\Authenticator('yetwhxBm7wCBSUTjeqh');
$client = new Guanguans\Notify\Bark\Client($authenticator);
// 1. Create authenticator
$authenticator = new \Guanguans\Notify\Bark\Authenticator('yetwhxBm7wCBSUTjeqh');

// 2. Create client
$client = new \Guanguans\Notify\Bark\Client($authenticator);

// 3. Create and send message
$response = $client
// ->verify(false)
// ->timeout(30)
// ->baseUri('The server address of your own deployment.')
->send(Guanguans\Notify\Bark\Messages\Message::make([
->send(\Guanguans\Notify\Bark\Messages\Message::make([
'title' => 'This is title.',
'body' => 'This is body.',
'copy' => 'This is copy.',
Expand All @@ -89,7 +87,6 @@ $response = $client
// ->dump()
->throw();
```
</details>

## Testing

Expand Down
33 changes: 7 additions & 26 deletions src/Bark/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
# Bark
# Bark | [Home](./../../)

## Usage
## [Usage example](./../../tests/Bark/ClientTest.php)

```php
$authenticator = new Guanguans\Notify\Bark\Authenticator('yetwhxBm7wCBSUTjeqh');
$client = new Guanguans\Notify\Bark\Client($authenticator);
$response = $client
// ->verify(false)
// ->timeout(30)
// ->baseUri('The server address of your own deployment.')
->send(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,
]))
// ->dump()
->throw();
```
## Related links

* [https://bark.day.app/#/tutorial](https://bark.day.app/#/tutorial)
* [https://github.com/Finb/Bark](https://github.com/Finb/Bark)
* [https://github.com/Finb/bark-server](https://github.com/Finb/bark-server)

0 comments on commit 1d06211

Please sign in to comment.