PHPackages                             pontedilana/open-graph-bundle - 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. pontedilana/open-graph-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

pontedilana/open-graph-bundle
=============================

A Symfony OpenGraph bundle

2.2.1(6mo ago)16.2k—2.5%[7 PRs](https://github.com/pontedilana/open-graph-bundle/pulls)MITPHPPHP ^8.1CI passing

Since Aug 16Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/pontedilana/open-graph-bundle)[ Packagist](https://packagist.org/packages/pontedilana/open-graph-bundle)[ Docs](https://github.com/pontedilana/open-graph-bundle)[ RSS](/packages/pontedilana-open-graph-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (16)Used By (0)

[![PHP Version](https://camo.githubusercontent.com/a242a45bff6395f96489c9a3c730125587ef0912dca0a97630e5016b434b148f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f6e746564696c616e612f6f70656e2d67726170682d62756e646c652e737667)](https://packagist.org/packages/pontedilana/open-graph-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/3ff23f8db13d3f2ac48feaa73c93d085000bdaa13803d512280ade703d91e960/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6e746564696c616e612f6f70656e2d67726170682d62756e646c652e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/pontedilana/open-graph-bundle)[![Total Downloads](https://camo.githubusercontent.com/9e984f93b124bada00fd7bef310cd7e72afdbe477233c5367a5effc2c62d820a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6e746564696c616e612f6f70656e2d67726170682d62756e646c652e737667)](https://packagist.org/packages/pontedilana/open-graph-bundle)[![Total Downloads](https://camo.githubusercontent.com/c5158428d82d30a434939e4616077359c86581ea202221d3aa3f5421f033d60e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f706f6e746564696c616e612f6f70656e2d67726170682d62756e646c652e737667)](https://packagist.org/packages/pontedilana/open-graph-bundle)[![License](https://camo.githubusercontent.com/52a9f0d97db5fd895c6824ae334315a1ec7676e2250df9e3f2c9d02388dfe565/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f6e746564696c616e612f6f70656e2d67726170682d62756e646c652e737667)](https://packagist.org/packages/pontedilana/open-graph-bundle)

OpenGraphBundle
===============

[](#opengraphbundle)

The PontedilanaOpenGraphBundle is a simple way to improve how you manage OpenGraph into your Symfony application, through the use of the [euskadi31/opengraph](https://github.com/euskadi31/opengraph) library.

This repository is a fork of [tenolo/open-graph-bundle](https://github.com/tenolo/open-graph-bundle) maintained by [Pontedilana](https://www.pontedilana.it). Support for PHP 8.1-8.4 and Symfony 5.4-8.0 has been added.

Requirements
------------

[](#requirements)

- **PHP**: 8.1 or higher
- **Symfony**: 5.4 LTS, 6.4 LTS, 7.x, 8.0 (in development)

> **Note**: OpenGraph is a standard protocol used by many websites (Facebook, Twitter, Google, ...) to obtain more precise information about your content.
>
> [Learn more about OpenGraph](https://ogp.me/)

The idea of this bundle it to associate each entity of your app with an **OpenGraph map**, a service able to create the OpenGraph document for your entity.

It also works with any other type of data.

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

[](#installation)

Installation is very quick:

### 1. Download it with Composer

[](#1-download-it-with-composer)

Add the bundle to your `composer.json` file by running:

`composer require pontedilana/open-graph-bundle`

### 2. Enable it in your kernel

[](#2-enable-it-in-your-kernel)

Enable the bundle in your `app/AppKernel.php` file;

```
