PHPackages                             mapkyca/php-ogp - 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. mapkyca/php-ogp

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

mapkyca/php-ogp
===============

Simple PHP Open Graph Protocol parser library

1.1.0(5y ago)2620.7k↓38.6%3GPL-2.0-onlyPHPPHP &gt;=5.6.0

Since Feb 23Pushed 5y ago6 watchersCompare

[ Source](https://github.com/mapkyca/php-ogp)[ Packagist](https://packagist.org/packages/mapkyca/php-ogp)[ RSS](/packages/mapkyca-php-ogp/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (4)Used By (0)

PHP Open Graph Library
======================

[](#php-open-graph-library)

This is a very very simple PHP open graph parser.

Pass it the contents of a web page, and it'll spit back an associated array of open graph tags and the value.

Usage
-----

[](#usage)

Include the library and call Parser's ::parse() function.

Example:

```
	require_once('ogp/Parser.php');

	$content = file_get_contents("https://www.youtube.com/watch?v=EIGGsZZWzZA");

	print_r(\ogp\Parser::parse($content));
```

Installation
------------

[](#installation)

To install this in your project:

```
composer require mapkyca/php-ogp

```

Author
------

[](#author)

- Marcus Povey

See
---

[](#see)

- Me
- Open Graph

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~371 days

Total

3

Last Release

1842d ago

### Community

Maintainers

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

---

Top Contributors

[![mapkyca](https://avatars.githubusercontent.com/u/124070?v=4)](https://github.com/mapkyca "mapkyca (19 commits)")[![thierrymarianne](https://avatars.githubusercontent.com/u/1053622?v=4)](https://github.com/thierrymarianne "thierrymarianne (1 commits)")

---

Tags

opengraph

### Embed Badge

![Health badge](/badges/mapkyca-php-ogp/health.svg)

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

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k887.0M1.6k](/packages/nikic-php-parser)[erusev/parsedown

Parser for Markdown.

15.0k150.2M639](/packages/erusev-parsedown)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k463.5M118](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k228.5M250](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k234.7M187](/packages/masterminds-html5)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k133.8M789](/packages/jms-serializer)

PHPackages © 2026

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