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)2621.4k↑205%31GPL-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 3w ago

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

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

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

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

1935d 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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[karriere/json-decoder

JsonDecoder implementation that allows you to convert your JSON data into PHP class objects

140439.4k12](/packages/karriere-json-decoder)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46143.1k6](/packages/jstewmc-rtf)[layered/page-meta

Get detailed info for any URL on the internet! Scraper for HTML, OpenGraph, Schema data

1131.7k](/packages/layered-page-meta)[json-mapper/laravel-package

The JsonMapper package for Laravel

25188.9k3](/packages/json-mapper-laravel-package)

PHPackages © 2026

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