PHPackages                             filippo-toso/open-graph-protocol - 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. filippo-toso/open-graph-protocol

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

filippo-toso/open-graph-protocol
================================

A Laravel facade to render Open Graph Protocol tags

v1.0.0(6y ago)018MITPHPPHP ^7.1.3

Since Jan 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/filippotoso/open-graph-protocol)[ Packagist](https://packagist.org/packages/filippo-toso/open-graph-protocol)[ RSS](/packages/filippo-toso-open-graph-protocol/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

A Laravel facade to render Open Graph Protocol tags
===================================================

[](#a-laravel-facade-to-render-open-graph-protocol-tags)

[![Latest Version on Packagist](https://camo.githubusercontent.com/092d1c472f6025286e4697b4ab70738f1e73242aced474e450da55ee3847445b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66696c6970706f2d746f736f2f6f70656e2d67726170682d70726f746f636f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/filippo-toso/open-graph-protocol)

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

[](#installation)

You can install the package via composer:

```
composer require filippo-toso/open-graph-protocol
```

Usage
-----

[](#usage)

The `Ogp` facade alias is available everywhere. You can use it in your controllers but also in a service provider or a middleware.

For instance, in your controller:

```
Ogp::title('Apple Cookie')
    ->type('article')
    ->image('http://example.org/apple.jpg')
    ->description('Welcome to the best apple cookie recipe never created.')
    ->url();
```

Then in your view, just place this Blade directive where you want to render the Open Graph Protocol tags:

```
@ogp
```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Acknowledgement
---------------

[](#acknowledgement)

This package is just a simple wrapper around the great [chriskonnertz/open-graph](https://github.com/chriskonnertz/open-graph) package.

Credits
-------

[](#credits)

- [Filippo Toso](https://github.com/filippotoso)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2

Last Release

2293d ago

Major Versions

v0.0.1 → v1.0.02020-01-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/55d89f2d44fb12225de2119994028ee69e36770bcf33c2b1ddf0d6672d28151b?d=identicon)[filippo.toso](/maintainers/filippo.toso)

---

Top Contributors

[![filippotoso](https://avatars.githubusercontent.com/u/26958813?v=4)](https://github.com/filippotoso "filippotoso (2 commits)")

### Embed Badge

![Health badge](/badges/filippo-toso-open-graph-protocol/health.svg)

```
[![Health](https://phpackages.com/badges/filippo-toso-open-graph-protocol/health.svg)](https://phpackages.com/packages/filippo-toso-open-graph-protocol)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)

PHPackages © 2026

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