PHPackages                             ajaxray/bagisto-opengraph - 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. ajaxray/bagisto-opengraph

ActiveBagisto-module[Utility &amp; Helpers](/categories/utility)

ajaxray/bagisto-opengraph
=========================

Setting OpenGraph meta tags for your Bagisto store.

v1.0.1(11mo ago)162[1 issues](https://github.com/ajaxray/bagisto-opengraph/issues)MITPHP

Since May 26Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/ajaxray/bagisto-opengraph)[ Packagist](https://packagist.org/packages/ajaxray/bagisto-opengraph)[ RSS](/packages/ajaxray-bagisto-opengraph/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

OpenGraph Package for Bagisto
=============================

[](#opengraph-package-for-bagisto)

A Laravel package for [Bagisto e-commerce platform](https://bagisto.com/en/) that helps to set an [Open Graph](https://ogp.me/) image for better social media sharing.

Purpose
-------

[](#purpose)

This package allows you to easily add Open Graph meta tags to your Bagisto e-commerce pages. Open Graph protocol enables any web page to become a rich object in a social graph, making it more engaging when shared on social media platforms like Facebook, Twitter, and LinkedIn.

Features
--------

[](#features)

- Easy integration with Bagisto
- Setting Open Graph Image, Title, Description etc. from Bagisto settings panel
- Add twitter sharing meta tags along with og tags.
- Dynamic Open Graph meta tag generation
- Inject meta tags only if not set by Bagisto (because Bagisto sets them for some pages)

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

[](#installation)

You can install the package via composer:

```
composer require ajaxray/opengraph
```

Usage
-----

[](#usage)

Once the package is installed, you can set Social preview image in your Bagisto admin panel. Go to `Configuration > Design > Social Preview Image` and set the image and other details. [![Social Preview Image](media/bagisto-opengraph.png)](media/bagisto-opengraph.png)

Then, it'll phsh the `og:*` and `twitter:*` meta tags in the ``. [![Social Preview Tags](media/bagisto-opengraph-tags.png)](media/bagisto-opengraph-tags.png)

Troubleshooting
---------------

[](#troubleshooting)

Even though the package is pushing the `\Ajaxray\OpenGraph\Http\Middleware\InjectOpenGraphTags` middlewire in the `web` middlewireGroup, in some cases it dosen't work. If you face the same issue, just add the middlewire manually in the `app/Http/Kernel.php` file.

```
protected $middlewareGroups = [
    'web' => [
        // Other middlewires ...
        \Ajaxray\OpenGraph\Http\Middleware\InjectOpenGraphTags::class,
    ],

    // Other groups
];
```

Support
-------

[](#support)

If you have any issues or questions, please open an issue at the [GitHub issues](https://github.com/ajaxray/bagisto-opengraph/issues).

License
-------

[](#license)

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

Contributing
------------

[](#contributing)

Thank you for considering contributing to the OpenGraph package! Please read our [Contribution Guidelines](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email me directly at anis(dot)programmer(at)gmail(dot)com.

---

🇵🇸 Gaza needs [your support](https://islamic-relief.org/appeals/palestine-emergency-appeal/).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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 ~10 days

Total

2

Last Release

339d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ajaxray-bagisto-opengraph/health.svg)

```
[![Health](https://phpackages.com/badges/ajaxray-bagisto-opengraph/health.svg)](https://phpackages.com/packages/ajaxray-bagisto-opengraph)
```

###  Alternatives

[ccinn/husky-php

Similar to js-husky client git hook implementation

6827.0k1](/packages/ccinn-husky-php)[keios/moneyright

Precise, GAAP-compliant, database-friendly Money Value Object

2055.5k1](/packages/keios-moneyright)[lloricode/laravel-html-table

Html table generator for laravel

1561.9k1](/packages/lloricode-laravel-html-table)[lingxi/hashids

A Hashids bridge for Laravel

183.3k](/packages/lingxi-hashids)

PHPackages © 2026

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