Code Monkey home page Code Monkey logo

webmention-plugin's Introduction

Webmention plugin

This is an implementation of Webmention in PHP. It includes a plugin to add Webmention support to b2evolution.

How it functions

It inspects links in posts. It will then send Webmentions.

When it receives one, it will check for its validity and that the Webmention doesn't already exist for the post and if it validates, then add it by an implementation of iWebmention::saveWebmention().

If it does already exist, it use an implementation of iWebmention::updateWebmention().

Vouch support

Vouch is supported but untested. If you want to test it and find any bugs, report them. Receiving Webmentions with Vouch is implemented according to the specification. To send a Webmention with Vouch, use the HTML5+ data-vouch attribute.

Known issues

  1. It doesn't support all the MAY and SHOULD conditions of the spec. In particular:
    • No caching. This surely can't be done in the core code, and I have no idea how to go about doing it in b2evolution.
    • No asynchronous validation. I'm again not sure how this will be done in b2evolution, as plugins are separate from the main code (i.e. none of the main blog display can be done while the plugin is validating asynchronously); a possible solution is to use scheduled jobs to allow the blog owner to decide how and when to validate Webmentions. Another (possibly more portable) solution is to limit the number of queued Webmentions.
    • No support for the Link HTTP header.
    • No constraints on sources greater than or equal to a megabyte.
  2. May not be interoperable. I can't get the webmention.rocks test suite to work (I just get the message "Not Found", but it doesn't tell me what exactly isn't found).

b2evolution plugin

A b2evolution plugin (_webmention.plugin.php) is included. Just install in the admin section of b2evolution.

Other systems

It should be possible to add support for another system by implementing the interface methods from _webmention_interface.php. _evo_webmention.class.php can be used as an example.

webmention-plugin's People

Contributors

keithbowes avatar

Watchers

 avatar  avatar

Forkers

bravesoftdz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.