MicrodataPHP
Extract microdata from HTML using PHP. Based on foolip's MicrodataJS implementation of the Microdata DOM API.
Install / Use
/learn @linclark/MicrodataPHPREADME
MicrodataPHP 
Microdata is a syntax for embedding machine-readable metadata in HTML.
MicrodataPHP 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:
require 'vendor/autoload.php';
use linclark\MicrodataPHP\MicrodataPhp;
$url = 'http://example.com';
$md = new MicrodataPhp($url);
$data = $md->obj();
// Get a property of a top level item.
print $data->items[0]->properties['name'][0];
// Get a property of a nested item.
print $data->items[0]->properties['hiringOrganization'][0]->properties['name'][0];
Requirements
- Autoloading (e.g. the autoloader provided by Composer)
- PHP 5.3+
Check out the 1.x branch for older setups.
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
