PHPackages                             beebmx/og-reader - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. beebmx/og-reader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

beebmx/og-reader
================

Read OG meta tags

10PHP

Since Nov 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/beebmx/og-reader)[ Packagist](https://packagist.org/packages/beebmx/og-reader)[ RSS](/packages/beebmx-og-reader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OG Reader
=========

[](#og-reader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb4f5378b680f209ff41ea007bacd33ed9db32a5f7d008ef62c82b2d3a9a46c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626565626d782f6f672d7265616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beebmx/og-reader)[![Total Downloads](https://camo.githubusercontent.com/a32f484158ee9d5f88296e3fdec073b07175755eefc3648864d77c1c3669e9a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626565626d782f6f672d7265616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beebmx/og-reader)

---

This packages helps you to detect and read `Open Graphs` tags in any html page.

---

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

[](#installation)

You can install the package via composer:

```
composer require beebmx/og-reader
```

Usage
-----

[](#usage)

For validate a page with or without `Open Graph` tags:

```
use Beebmx\OgReader\ContentReader;

$reader = ContentReader::load('https://website.com');

$reader->meta()->hasOg();
$reader->meta()->notHasOg();
```

If you need all the meta tags in the page:

```
use Beebmx\OgReader\ContentReader;

$reader = ContentReader::load('https://website.com');

$reader->meta();
```

If you only need the `Open Graph` tags:

```
use Beebmx\OgReader\ContentReader;

$reader = ContentReader::load('https://website.com');

$reader->meta()->og();
```

Each tag can be access like an object:

```
$tag->property;
$tag->content;
```

If you need the tag representation as HTML just:

```
$tag->asHtml();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Fernando Gutierrez](https://github.com/beebmx)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/434a3fd09c4701e824184e720b3d2fd97814ed8d1275417f6762c411bf146328?d=identicon)[beebmx](/maintainers/beebmx)

---

Top Contributors

[![beebmx](https://avatars.githubusercontent.com/u/2191576?v=4)](https://github.com/beebmx "beebmx (1 commits)")

### Embed Badge

![Health badge](/badges/beebmx-og-reader/health.svg)

```
[![Health](https://phpackages.com/badges/beebmx-og-reader/health.svg)](https://phpackages.com/packages/beebmx-og-reader)
```

###  Alternatives

[airesvsg/acf-to-rest-api-recursive

Get ACF fields recursively

442.5k](/packages/airesvsg-acf-to-rest-api-recursive)

PHPackages © 2026

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