apiaryhq / webmention
Apiary Indieweb 支持的 Webmention 包
dev-master / 1.0.x-dev
2015-11-17 23:09 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.1
- psr/http-message: ^1.0
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: 5.0.*
This package is not auto-updated.
Last update: 2024-09-14 17:43:05 UTC
README
一个用于 PSR-7 响应的 PHP Webmention 客户端。是 Apiary IndieWeb 支持包的一部分。
此包符合 PSR-1、PSR-2、PSR-4 和 PSR-7。如果您发现合规性问题,请通过 pull request 发送补丁。
Webmention 是 Pingback 的现代替代品,也是独立网络的构建块之一。[独立网络](http://indiewebcamp.com/principles) 。有关 Webmention 的更多信息,请参阅 [IndieWeb](http://indiewebcamp.com/webmentions)、[Webmention.org](https://github.com/converspace/webmention) 和 [Webmention.io](https://webmention.io/)。
安装
通过 Composer
$ composer require apiary/webmention
用法
$client = new Apiary\Webmention\Client(); $client->send($source, $target);
您可以为客户端提供一个可选的日志记录器
$client->setLogger($logger);
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG。
测试
最初,此包使用单独运行的 Webmention 端点进行测试。在运行测试之前,您需要运行以下命令
- https://github.com/pfefferle/node-webmention-testendpoint
- https://github.com/voxpelli/node-webmention-testpinger
$ composer test
贡献
有关详细信息,请参阅 CONTRIBUTING 和 CONDUCT。
安全
如果您发现任何安全问题,请通过电子邮件 darren@apiaryhq.com 联系,而不是使用问题跟踪器。
鸣谢
- Darren Mothersele
- 所有贡献者
- Skeleton 包来自 The PHP League
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件。