php-mf2
php-mf2 copied to clipboard
php-mf2 is a pure, generic microformats-2 parser for PHP. It makes HTML as easy to consume as JSON.
php-mf2 does not do `hreview` backcompat see: http://microformats.org/wiki/h-review#Parser_Compatibility # Example ## HTML ```html URL ``` ## Current Output ```json "items": [ { "type": [ "h-review" ], "properties": [] } ]...
Does not parse anything for this `hreview-aggregate` root. See: https://github.com/microformats/tests/blob/master/tests/microformats-v1/hreview-aggregate/justahyperlink.html
Originally this was PR #201 which got stale. I believe PR #234 fixed issue #184 properly. This just adds back the original tests that 201 was going to add, and...
This feature has been around for [a while](https://github.com/microformats/php-mf2/releases/tag/v0.3.2) and there was [discussion](https://github.com/microformats/microformats2-parsing/issues/3#issuecomment-691583441) about enabling it by default. https://php.microformats.io/ has the flag enabled if you want to try it out. If...
This can help prevent discovery that CI isn't building after N months, and provide history of when it breaks. 1 month is fine for projects without too much changing. Feel...
Could help maintainers avoid overhead of making a branch or re-running past action workflow runs.
This builds on #236 and #235 Originally I just wanted to revive #213 but it seems CI was borked for 5.6, and then I wanted more modern PHP8 support. old...
(gRegorLove asked for clarification about this in https://github.com/microformats/microformats2-parsing/issues/37, but I'd agree with Kartik's reading there, and there should be a bug here tracking this) (sample based on https://islandinthenet.com/reply/, who asked...
This patch removes reliance on the mbstring extension in three places: 1. The `unicodeTrim` function used mbstring to generate a UTF-8 encoding of a U+00A0 NO-BREAK SPACE character. This has...
Currently, the parser has a variety of different entry points: ```php Mf2\fetch('url'); Mf2\parse('html', 'url'); $p = new Parser('html', 'url'); $p->parse(); $p->parseFromId(); ``` Additionally, there is a variety of different ways...