euskadi31 / microdata
Extract microdata from HTML using PHP 5.3+
Installs: 17 982
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2020-01-10 14:55:14 UTC
README
Microdata is a syntax for embedding machine-readable metadata in HTML.
Microdata is a PHP library for extracting microdata from HTML documents. It is inspired by MicrodataJS, which is inspired by the native Microdata DOM API.
Example use:
namespace Demos; require __DIR__ . '/../src/Microdata/Reader/Document.php'; require __DIR__ . '/../src/Microdata/Reader/Element.php'; require __DIR__ . '/../src/Microdata/Reader.php'; use Microdata; $r = new Microdata\Reader("http://www.imdb.com/title/tt0903747/"); $data = $r->read(); print_r($data);
Requirements
PHP 5.3 or higher