PHPackages                             fond-of-spryker/open-graph - 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. [API Development](/categories/api)
4. /
5. fond-of-spryker/open-graph

ActiveLibrary[API Development](/categories/api)

fond-of-spryker/open-graph
==========================

Implementation of the Facebook Open Graph protocol for Spryker

1.0.1(7y ago)020.9kMITPHPPHP &gt;=7.1

Since Apr 16Pushed 3y ago2 watchersCompare

[ Source](https://github.com/fond-of/spryker-open-graph)[ Packagist](https://packagist.org/packages/fond-of-spryker/open-graph)[ RSS](/packages/fond-of-spryker-open-graph/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (8)Versions (5)Used By (0)

Open Graph integration for Spryker
==================================

[](#open-graph-integration-for-spryker)

[![Build Status](https://camo.githubusercontent.com/f890006c941b1e8589907ff8e75862d9cab9d6b85d1b4b6e649ad17754fb54d3/68747470733a2f2f7472617669732d63692e6f72672f666f6e642d6f662f737072796b65722d6f70656e2d67726170682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fond-of/spryker-open-graph)[![PHP from Travis config](https://camo.githubusercontent.com/9d245815c30188a34e60692f24442c3fe7e92f9958d8a7a1d6f7463e7ed866b3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f73796d666f6e792f73796d666f6e792e737667)](https://php.net/)[![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/fond-of-spryker/open-graph)

A Basic implementation of the Facebook Open Graph protocol for Spryker

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

[](#installation)

```
composer require fond-of-spryker/open-graph

```

1. Enable the Module in the configuration file
----------------------------------------------

[](#1-enable-the-module-in-the-configuration-file)

```
// ---------- Google Tag Manager
$config[OpenGraphConstants::ENABLED::ENABLED] = true;

```

2. Add Product Image Property Configurations in the configuration file
----------------------------------------------------------------------

[](#2-add-product-image-property-configurations-in-the-configuration-file)

```
$config[OpenGraphConstants::PRODUCT_IMAGE_SET] = 'default';
$config[OpenGraphConstants::PRODUCT_IMAGE_URL_TYPE] = 'externalUrlLarge';

```

3. Add twig service provider to YvesBootstrap.php in registerServiceProviders()
-------------------------------------------------------------------------------

[](#3-add-twig-service-provider-to-yvesbootstrapphp-in-registerserviceproviders)

```
$this->application->register(new OpenGraphTwigServiceProvider());

```

4. Add the Twig Extension in the neccessary Twig Templates
----------------------------------------------------------

[](#4-add-the-twig-extension-in-the-neccessary-twig-templates)

```
  Application/layout/layout.twig
  between  tags

    {# Open Graph Protocol for Facebook and SEO #}
    {% block opengraph %}
        {% set params = {
            'title': 'global.shop.title' | trans,
            'description': '',
            'url': app.request.uri,
            'type': 'website',
            'site_name': app.locale | slice(0, 2)
        }
        %}
        {{ openGraph(params)}}
    {% endblock %}

```

```
  Catalog/catalog/index.twig
  {% block opengraph %}
      {% set params = {
          'title': category.name,
          'description': '',
          'url': app.request.uri,
          'type': 'website',
          'site_name': '....'
      }
      %}
      {{ openGraph(params)}}
  {% endblock %}

```

```
  Product/product/detail.twig
  {% block opengraph %}
      {% set params = {
          'title': product.name,
          'description': product.description,
          'url': app.request.uri,
          'type': 'product',
          'site_name': '...',
          'product': product
      }
      %}
      {{ openGraph(params)}}
  {% endblock %}

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

3

Last Release

2810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c8ae669ad5d4e25d1564b2ee381e86fb88b3d9f132040a1a6b642de43b7a417?d=identicon)[daniel-rose](/maintainers/daniel-rose)

![](https://www.gravatar.com/avatar/5766a5e1f2f31647ebd3e7ccfc434a968092eedbf3db8f6e999f3d8650d4521e?d=identicon)[Carpenter0100](/maintainers/Carpenter0100)

![](https://www.gravatar.com/avatar/2f5bd8b1a3358200680cbaf5d0dce827afb0569cc997877854354cc70bcf5a61?d=identicon)[julianzimmermann](/maintainers/julianzimmermann)

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

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

---

Top Contributors

[![gengjozsef](https://avatars.githubusercontent.com/u/20280713?v=4)](https://github.com/gengjozsef "gengjozsef (3 commits)")[![Carpenter0100](https://avatars.githubusercontent.com/u/33862258?v=4)](https://github.com/Carpenter0100 "Carpenter0100 (1 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/fond-of-spryker-open-graph/health.svg)

```
[![Health](https://phpackages.com/badges/fond-of-spryker-open-graph/health.svg)](https://phpackages.com/packages/fond-of-spryker-open-graph)
```

PHPackages © 2026

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