PHPackages                             vumanskyi/php-open-graph-library - 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. vumanskyi/php-open-graph-library

ActiveLibrary

vumanskyi/php-open-graph-library
================================

This is a simple PHP library which help to interact with Open Graph Protocol and Twitter Card

1.0.0(5y ago)031MITPHPPHP ^8.0

Since Oct 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/vumanskyi/php-open-graph-library)[ Packagist](https://packagist.org/packages/vumanskyi/php-open-graph-library)[ Docs](https://github.com/vumanskyi/php-open-graph-library)[ RSS](/packages/vumanskyi-php-open-graph-library/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://supportukrainenow.org/)

---

[![CircleCI](https://camo.githubusercontent.com/37cb622680c25cd728e4305295f4e9ac63ad85f0d4277d586f5b4753a33e7e35/68747470733a2f2f636972636c6563692e636f6d2f67682f76756d616e736b79692f7068702d6f70656e2d67726170682d6c6962726172792e7376673f7374796c653d737667)](https://circleci.com/gh/vumanskyi/php-open-graph-library)[![StyleCI](https://camo.githubusercontent.com/e11afdb768ba2b1d947bd31d842b70c4a820b7e3dbbc2ffa4b20e0046bdcfced/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3330323937353336332f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/302975363?branch=main)[![Total Downloads](https://camo.githubusercontent.com/4cf7186a358d40804594c7c0c1d835ad704d1099847825867a6434369582aee0/68747470733a2f2f706f7365722e707567782e6f72672f76756d616e736b79692f7068702d6f70656e2d67726170682d6c6962726172792f646f776e6c6f616473)](https://packagist.org/packages/vumanskyi/php-open-graph-library)[![Latest Stable Version](https://camo.githubusercontent.com/4e539bd12243aa32f4956828d7696b13d19d9fcabcf37e7bc7d8973514a4c4d5/68747470733a2f2f706f7365722e707567782e6f72672f76756d616e736b79692f7068702d6f70656e2d67726170682d6c6962726172792f762f737461626c65)](https://packagist.org/packages/vumanskyi/php-open-graph-library)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://github.com/vumanskyi/php-open-graph-library/blob/main/LICENSE)

PHP Open Graph library
======================

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

This is a library to help you configure and render [Open Graph Protocol](https://ogp.me) and [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards) for your website.

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

[](#installation)

The package could be installed with composer:

```
composer require vumanskyi/php-open-graph-library

```

Usage
-----

[](#usage)

```
use VU\OpenGraph\Render;
use VU\OpenGraph\PropertyConfiguration;
use VU\OpenGraph\Properties\Basic;

$render = new Render();
$configuration = new PropertyConfiguration($render);

$basic = new Basic($configuration);
$basic->setTitle('Test title')
    ->setDescription('Test description')
    ->setLocale('uk_UA')
    ->handle();

echo $basic->render();

```

And the result will be:

```

```

Another types:

- \\VU\\OpenGraph\\Properties\\Articles
- \\VU\\OpenGraph\\Properties\\Audio
- \\VU\\OpenGraph\\Properties\\Basic
- \\VU\\OpenGraph\\Properties\\Book
- \\VU\\OpenGraph\\Properties\\Image
- \\VU\\OpenGraph\\Properties\\Profile
- \\VU\\OpenGraph\\Properties\\Video
- \\VU\\OpenGraph\\Properties\\TwitterCard

Unit testing
------------

[](#unit-testing)

```
./vendor/bin/phpunit

```

---

If you have any [issues](https://github.com/vumanskyi/vanilla-open-graph/issues), please let me know

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~114 days

Total

2

Last Release

1928d ago

Major Versions

0.1.0 → 1.0.02021-02-04

PHP version history (2 changes)0.1.0PHP ^7.3

1.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5f7b1a4890a3b862c192424ac424b6c61f5aed0c980485c9201ddec2c340472?d=identicon)[Vlad Umanskyi](/maintainers/Vlad%20Umanskyi)

---

Top Contributors

[![vumanskyi](https://avatars.githubusercontent.com/u/13002167?v=4)](https://github.com/vumanskyi "vumanskyi (17 commits)")

---

Tags

opengraphphpphp-libraryseo-metatwitter-cardsfacebookseotwitter cardopengraphPHP Libraryopen-graphVlad UmanskyiVladUmanskyi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vumanskyi-php-open-graph-library/health.svg)

```
[![Health](https://phpackages.com/badges/vumanskyi-php-open-graph-library/health.svg)](https://phpackages.com/packages/vumanskyi-php-open-graph-library)
```

###  Alternatives

[umanskyi31/opengraph

Created a new component for Yii2. The Open Graph component for your website

119.7k](/packages/umanskyi31-opengraph)[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[coffeecode/optimizer

Optimizer makes it easy to bookmark your site tags, open graph and twitter card

28260.9k2](/packages/coffeecode-optimizer)[chriskonnertz/open-graph

Class that assists in building Open Graph meta tags

117428.6k3](/packages/chriskonnertz-open-graph)[pedroborges/meta-tags

HTML meta tags generator for PHP.

4628.6k1](/packages/pedroborges-meta-tags)[quinninteractive/silverstripe-seo

An all-in-one SEO module for SilverStripe

3328.2k](/packages/quinninteractive-silverstripe-seo)

PHPackages © 2026

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