dshanske / parse-this
Parse This Library for WordPress
Installs: 1 002
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 6
Forks: 3
Open Issues: 14
Type:wordpress-plugin
Requires
- php: >=5.6.0
- composer/installers: ^1.0 || ^2.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: *
- masterminds/html5: *
- mf2/mf2: dev-main
- php-parallel-lint/php-parallel-lint: ^1.3
- phpcompatibility/php-compatibility: *
- phpcompatibility/phpcompatibility-wp: *
- sebastian/phpcpd: ^3.0 || ^5.0 || ^6.0
- squizlabs/php_codesniffer: *
- wp-coding-standards/wpcs: *
- wpreadme2markdown/wp2md: *
- yoast/phpunit-polyfills: ^1.0
This package is auto-updated.
Last update: 2024-10-30 01:53:45 UTC
README
Parse This turns URLs into structured jf2 data
Description
Parse This is based on a variety of projects including the parsing code from Press This, which was removed from WordPress.
- It supports parsing from MF2 if present
- For sites that are not marked up with Microformats 2(MF2) it will fall back onto parsing JSON-LD, then HTML/OpenGraph/Dublin Core Tags/etc.
- It supports parsing of JSONFeed and RSS/Atom feeds
- It supports parsing of WordPress REST API endpoints to generate a site feed
The goal is to produce structured jf2 data that can be used for previewing links as well as feed readers and other options. It is also bundled in the Post Kinds and Yarns Microsub plugins as a library.
It can be installed as a standalone plugin which will provide the necessary libraries and functionality as well as the REST API endpoint for getting JF2 data from an arbitrary URL or a WordPress Post.
Frequently Asked Questions
Changelog
1.0.1 ( 2021-04-02 )
- Remove SimplePie as a dependency as the latest version 1.5.6 is now bundled with WordPress as of 5.6.
- Remove MB polyfill due issues with PHP8.0 compatibility in favor of simpler solution.
1.0.0 ( 2020-12-15 )
- First Official Release. Prior to this point it was in a point release.