apiaryhq/webmention

Webmention package from Apiary Indieweb support

dev-master / 1.0.x-dev 2015-11-17 23:09 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:34:06 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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:

$ 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

License

The MIT License (MIT). Please see License File for more information.