PHPackages                             urmaul/yii-opengraph - 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. [Templating &amp; Views](/categories/templating)
4. /
5. urmaul/yii-opengraph

ActiveLibrary[Templating &amp; Views](/categories/templating)

urmaul/yii-opengraph
====================

Yii component to store and render opengraph tags.

v1.3.0(10y ago)063MITPHP

Since Feb 7Pushed 10y agoCompare

[ Source](https://github.com/urmaul/opengraph)[ Packagist](https://packagist.org/packages/urmaul/yii-opengraph)[ Docs](https://github.com/urmaul/opengraph)[ RSS](/packages/urmaul-yii-opengraph/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Opengraph
=========

[](#opengraph)

Yii component to store and render [opengraph](http://ogp.me/) tags.

Why
---

[](#why)

- You can make only first/last occurance of metatag to be rendered.
- It converts image links to absolute.
- You'll white it anyway.

Supported tags
--------------

[](#supported-tags)

- og:title
- og:url
- og:description
- og:image

Installing
----------

[](#installing)

Add this to "components" part of your config.

```
'og' => array(
    'class' => 'ext.opengraph.Opengraph',
),
```

Using
-----

[](#using)

```
// Set og:image
Yii::app()->og->image = $imageUrl;
// Set og:image if not set
Yii::app()->og->setImage($imageUrl, false);

// Flush contents to ClientScript
Yii::app()->og->flush();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3834d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22364b943477de78bf89bb19b5708a93666e38b5f1ad954ded9c656b3c116cb8?d=identicon)[urmaul](/maintainers/urmaul)

---

Top Contributors

[![urmaul](https://avatars.githubusercontent.com/u/1838544?v=4)](https://github.com/urmaul "urmaul (3 commits)")

---

Tags

yiiopengraph

### Embed Badge

![Health badge](/badges/urmaul-yii-opengraph/health.svg)

```
[![Health](https://phpackages.com/badges/urmaul-yii-opengraph/health.svg)](https://phpackages.com/packages/urmaul-yii-opengraph)
```

###  Alternatives

[vova07/yii2-imperavi-widget

The imperavi redactor widget for Yii 2 framework.

243979.7k40](/packages/vova07-yii2-imperavi-widget)[yiiext/imperavi-redactor-widget

Imperavi Redactor Widget for Yii

404138.2k4](/packages/yiiext-imperavi-redactor-widget)[ycs77/inertia-laravel-ssr-head

Simple SSR Head for Inertia Laravel

3211.5k](/packages/ycs77-inertia-laravel-ssr-head)

PHPackages © 2026

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