PHPackages                             edeoliv/laravel-open-graphy - 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. [Image &amp; Media](/categories/media)
4. /
5. edeoliv/laravel-open-graphy

ActiveLibrary[Image &amp; Media](/categories/media)

edeoliv/laravel-open-graphy
===========================

An awesome open graph image (social cards) generator package for Laravel.

1.0(1y ago)011MITBladePHP ^8.2

Since Jul 13Pushed 1y agoCompare

[ Source](https://github.com/edeoliv/laravel-open-graphy)[ Packagist](https://packagist.org/packages/edeoliv/laravel-open-graphy)[ Docs](https://github.com/edeoliv/laravel-open-graphy)[ GitHub Sponsors]()[ RSS](/packages/edeoliv-laravel-open-graphy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

[![Logo Laravel Open Graphy](/documentation/images/open-graphy.png)](/documentation/images/open-graphy.png)

[![Build Status](https://camo.githubusercontent.com/0c7be00225fa8b20b6428768da9284f3eed6fd218daa063dec1406642daa50f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6564656f6c69762f6c61726176656c2d6f70656e2d6772617068792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edeoliv/laravel-open-graphy)

**Open Graphy** is an awesome open graph image (social / twitter / X cards) generator package for your Laravel applications.

With Open Graphy, you can generate social cards for your website dynamically. You can use the default template or create your own template.

**Features:**

- Easily generate open graph images for your website.
- Add title, an image and your logo to the open graph image.
- Add a screenshot of the page inside the open graph image to show the preview of the page.
- 5 different templates to choose from.
- Customize the colors and styles of the templates.
- Cache the generated images.
- Create your own template if you want.

**Examples: 👇**

[![open-graphy-examples.png](documentation/images/open-graphy-examples.webp)](documentation/images/open-graphy-examples.webp)

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

[](#requirements)

- PHP 8.1+

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

[](#installation)

1. You need to install the `chromium` or `chrome` browser on your server as it's being used by Open Graphy to render images.

**Ubuntu/Debian**:

```
sudo apt-get install -y chromium-browser
```

### Note for Ubuntu ARM systems:

[](#note-for-ubuntu-arm-systems)

Sometimes Ubuntu systems that are based on ARM might have problems with snap packages (like chromium), and because of that chromium might not work via the web server. In this case you can try setting the `generate_with_command` option to `true` in the config file. This will generate the open graph image with a command instead from the controller.

**MacOS**:

```
brew install --cask google-chrome
```

**Laravel Sail using MacOS (Apple Silicon)**: I found the following steps to work for me on my M1 Macbook Pro:

```
apt-get install software-properties-common
add-apt-repository ppa:xtradeb/apps -y
apt update
apt install chromium
```

2. Once done, You can install the package via composer:

```
composer require edeoliv/laravel-open-graphy
```

You can publish the config file with:

```
php artisan vendor:publish --tag="open-graphy-config"
```

This is the contents of the published config file:

```
