apiaryhq / webmention
Webmention package from Apiary Indieweb support
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-10-26 18:12:08 UTC
README
A PHP Webmention client, for PSR-7 responses. Part of the Apiary IndieWeb support packages.
This package is compliant with PSR-1, PSR-2, PSR-4 and PSR-7. If you notice compliance oversights, please send a patch via pull request.
Webmention is a modern alternative to Pingback, and one of the building blocks of the independent web. For more information about Webmentions see IndieWeb, Webmention.org and Webmention.io.
Install
Via Composer
$ composer require apiary/webmention
Usage
$client = new Apiary\Webmention\Client(); $client->send($source, $target);
You can provide an optional logger to the client:
$client->setLogger($logger);
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Initially, this package is using a separate running webmention enpoint to test against. You'll need to run the following before the tests will run:
- https://github.com/pfefferle/node-webmention-testendpoint
- https://github.com/voxpelli/node-webmention-testpinger
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email darren@apiaryhq.com instead of using the issue tracker.
Credits
- Darren Mothersele
- All Contributors
- Skeleton package from The PHP League
License
The MIT License (MIT). Please see License File for more information.