This package is abandoned and no longer maintained. No replacement package was suggested.

Adds an Open Graph tag manager to the Reliv Content Manager.

0.0.4 2016-07-12 00:15 UTC

This package is auto-updated.

Last update: 2020-10-16 02:07:19 UTC


This package adds an Open Graph tag manager to the Reliv Content Manager.



$ composer require wshafer/opengraph


Add WShafer\OpenGraph to your config/application.config.php modules section.

DB Updates

Generate the SQL file needed to update your database with the needed tables. We use Docrine so a simple update should generate the needed sql file:

$ php pubic/index.php orm:schema-tool:update --dump-sql

Run the generated sql against your database.


To add the Open Graph tags, you'll need add the view helper to the header section of your layouts.

Start by removing any open graph tags currently in your view. Then add the following to your head section in the layouts where you want your OG tags to appear

<?= $this->openGraph(); ?>

Default Values

The module contains some default values, but you'll want to customize these to your liking.

Add the following config to global.php or local.php and adust the values according to your needs:

return [
    'openGraph' => [
        'defaults' => [
            'facebook' => [
                'appId' => '1234',
            'general' => [
                'ogType' => 'website',
            'website' => [
                'title' => 'No Title',
                'image' => '',
                'description' => '',
                'siteName' => '',
            'article' => [
                'title' => 'No Title',
                'image' => '',
                'description' => '',
                'siteName' => '',
                'author' => '',
                'section' => ''