PHPackages                             linclark/microdata-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. linclark/microdata-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

linclark/microdata-php
======================

Extracts microdata from HTML using PHP.

2.0.2(11y ago)11842.9k23[6 PRs](https://github.com/linclark/MicrodataPHP/pulls)3MITPHP

Since Jun 13Pushed 6y ago11 watchersCompare

[ Source](https://github.com/linclark/MicrodataPHP)[ Packagist](https://packagist.org/packages/linclark/microdata-php)[ RSS](/packages/linclark-microdata-php/feed)WikiDiscussions 2.0.x Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (3)

MicrodataPHP [![Build Status](https://camo.githubusercontent.com/4a819d882e66a1324764ff1e0665eb792b8c1a4a7d9188937605667c1a38ffb3/68747470733a2f2f7472617669732d63692e6f72672f6c696e636c61726b2f4d6963726f646174615048502e7376673f6272616e63683d322e302e78)](https://travis-ci.org/linclark/MicrodataPHP)
=========================================================================================================================================================================================================================================================================================================

[](#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
============

[](#requirements)

- Autoloading (e.g. the autoloader provided by [Composer](https://getcomposer.org/))
- PHP 5.3+

Check out the 1.x branch for older setups.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 81.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~69 days

Total

4

Last Release

4148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1c79a5a292a031d3bdc4409da35b59071f8657e05a121a00b52ab767b79b843?d=identicon)[linclark](/maintainers/linclark)

---

Top Contributors

[![linclark](https://avatars.githubusercontent.com/u/105464?v=4)](https://github.com/linclark "linclark (44 commits)")[![kimpepper](https://avatars.githubusercontent.com/u/6132?v=4)](https://github.com/kimpepper "kimpepper (8 commits)")[![pfefferle](https://avatars.githubusercontent.com/u/2373?v=4)](https://github.com/pfefferle "pfefferle (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linclark-microdata-php/health.svg)

```
[![Health](https://phpackages.com/badges/linclark-microdata-php/health.svg)](https://phpackages.com/packages/linclark-microdata-php)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
