PHPackages                             joem/og-query - 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. joem/og-query

ActiveLibrary

joem/og-query
=============

v0.8-alpha(5y ago)15MITPHP

Since Oct 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Joe45M/og-query)[ Packagist](https://packagist.org/packages/joem/og-query)[ RSS](/packages/joem-og-query/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (1)Versions (7)Used By (0)

OgQuery - Effortlessly fetch page meta
======================================

[](#ogquery---effortlessly-fetch-page-meta)

OgQuery is a simple, expressive &amp; fluent interface, used to fetch meta from an HTML page.

Usage
-----

[](#usage)

Using OgQuery is *really* simple.

Instantiate the Class:

```
$Query = new $OgQuery();
```

Set your target endpoint:

```
$Query->endpoint('https://joemoses.dev');
```

Now, select the meta tags you'd like to return:

```
$Query->meta_tags(['og:title', 'og:image']);
```

Now, execute the request and get results:

```
$Query->execute();
```

It's that simple.

Class Methods
-------------

[](#class-methods)

The methods within the OgQuery class are all chain-able, to keep the syntax small and concise.

### endpoint(fqdn)

[](#endpointfqdn)

#### Paramaters

[](#paramaters)

**fqdn** - *String* - the fully qualified domain name you wish to target.

#### Return

[](#return)

**$this** - *Object* - Class instance

### meta\_tags(tags)

[](#meta_tagstags)

#### Paramaters

[](#paramaters-1)

**tags** - *Array* - An array of meta keys you'd like to fetch - must be either a `name` or `property` value.

#### Return

[](#return-1)

**$this** - *Object* - Class instance

### execute()

[](#execute)

#### Paramaters

[](#paramaters-2)

*None*.

#### Return

[](#return-2)

**results** - *Array* - An associative array of found meta data, where the key is the `name`/`property` value, and value is `content` value.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

2034d ago

### Community

Maintainers

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

---

Top Contributors

[![Joe45M](https://avatars.githubusercontent.com/u/43468999?v=4)](https://github.com/Joe45M "Joe45M (19 commits)")

### Embed Badge

![Health badge](/badges/joem-og-query/health.svg)

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

###  Alternatives

[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)

PHPackages © 2026

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