PHPackages                             bennothommo/oc-meta-plugin - 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. bennothommo/oc-meta-plugin

AbandonedArchivedOctober-plugin

bennothommo/oc-meta-plugin
==========================

Provides an easy interface to insert HTML meta and link tags into an October CMS layout or page.

v1.0.4(5y ago)423531MITPHPPHP &gt;=7.0.8

Since Mar 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bennothommo/october-plugin-meta)[ Packagist](https://packagist.org/packages/bennothommo/oc-meta-plugin)[ RSS](/packages/bennothommo-oc-meta-plugin/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

**Please note that this repository is no longer being maintained.**
Due to [a disagreement](https://github.com/wintercms/winter/issues/5) with the founders of October CMS, I will no longer be providing updates for the October CMS version of this plugin. I will keep the repository available for people to use, but will only be updating the [Winter CMS version](https://github.com/bennothommo/wn-meta-plugin) of this plugin.

---

Meta plugin
===========

[](#meta-plugin)

Provides an easy interface to allow October CMS plugins to insert HTML `` and `` tags, as well as JSON-LD blocks into a layout or page. The plugin provides three helper classes to populate the meta and link tags or JSON-LD blocks, and a component each to inject them into an October CMS layout, partial or page file.

Usage
-----

[](#usage)

### For theme developers

[](#for-theme-developers)

Three components are provided to inject the meta and link tags or JSON-LD blocks into your theme - **metaList**, **linkList** and **jsonLdList**.

#### Meta tags

[](#meta-tags)

Add the **Meta -&gt; Meta List** component to your page and add the following line where you would like the meta tags to be inserted. This should preferably be inside the `` tag.

```
{% component 'metaList' %}

```

Meta tags will be generated in the following structure:

```

```

Two options are also provided with the component:

- **Include page meta?**: If ticked (default), the meta title and description fields provided by October CMS will be also be included in the generated meta tags.
- **Escape tag values?**: If ticked (default), the values inserted into the `content` attribute will be escaped using `htmlentities`. If this messes up your content, you can untick this to insert the raw content instead.

#### Link tags

[](#link-tags)

Add the **Meta -&gt; Link List** component to your page and add the following line where you would like the link tags to be inserted. As above, this should also preferably be inside the `` tag.

```
{% component 'linkList' %}

```

Link tags will be generated in the following structure:

```

```

An option is also provided with the component:

- **Escape tag values?**: If ticked (default), the values inserted into the `href` attribute will be escaped using `htmlentities`. If this messes up your content, you can untick this to insert the raw content instead.

#### JSON-LD blocks

[](#json-ld-blocks)

Add the **Meta -&gt; JSON-LD List** component to your page and add the following line where you would like the JSON-LD blocks to be inserted. As above, this should also preferably be inside the `` tag, beneath all `` and `` tags.

```
{% component 'jsonLdList' %}

```

JSON-LD blocks will be generated in the following structure:

```

    (value)

```

An option is also provided with the component:

- **Escape JSON-LD content?**: If ticked (default), the values inserted into the JSON-LD content blocks will be escaped using `htmlentities`. If this messes up your content - especially in the case of HTML content, you can untick this to insert the raw content instead.

---

### For plugin developers

[](#for-plugin-developers)

If you wish to use this plugin to provide meta and link tags or JSON-LD block content on sites that your plugin is installed on, you can use the `\BennoThommo\Meta\Meta`, `\BennoThommo\Meta\Link` and `\BennoThommo\Meta\JsonLd` helper classes in your plugin.

These classes can be used up until the point in which the components above are rendered in October CMS.

#### Meta tags

[](#meta-tags-1)

To add a Meta tag, use the following line:

```
\BennoThommo\Meta\Meta::set('name', 'value')

```

where `name` is the name of the meta tag and `value` is the content of the meta tag.

You can also add several meta tags at once:

```
\BennoThommo\Meta\Meta::set([
    'name1' => 'value1',
    'name2' => 'value2'
]);

```

Note that only one value can be used per `name`. If the same name is used in a more recent call to the helper, the given value will overwrite any previous values.

#### Link tags

[](#link-tags-1)

To add a Link tag, use the following line:

```
\BennoThommo\Meta\Link::set('name', 'value')

```

where `name` is the name of the link tag and `value` is the href of the link tag.

You can also add several link tags at once:

```
\BennoThommo\Meta\Link::set([
    'name1' => 'value1',
    'name2' => 'value2'
]);

```

Note that only one value can be used per `name`. If the same name is used in a more recent call to the helper, the given value will overwrite any previous values.

#### JSON-LD blocks

[](#json-ld-blocks-1)

To add a JSON-LD block, use the following line:

```
\BennoThommo\Meta\JsonLd::set('name', '{key: value}')

```

where `name` is the name of the JSON-LD block and `value` is the JSON-encoded content you wish to use in the block.

All provided values will be checked to ensure they are valid JSON - if a value provided is not valid JSON content, an `ApplicationException` will be thrown.

You can also add several JSON-LD blocks at once:

```
\BennoThommo\Meta\JsonLd::set([
    'name1' => '{key1: value1}',
    'name2' => '{key2: value2}'
]);

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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 ~207 days

Total

2

Last Release

2045d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15900351?v=4)[Ben Thomson](/maintainers/bennothommo)[@bennothommo](https://github.com/bennothommo)

---

Top Contributors

[![bennothommo](https://avatars.githubusercontent.com/u/15900351?v=4)](https://github.com/bennothommo "bennothommo (15 commits)")[![junjettrasmonte](https://avatars.githubusercontent.com/u/5109856?v=4)](https://github.com/junjettrasmonte "junjettrasmonte (1 commits)")

---

Tags

metaoctobercmsphppluginpluginlinkhtmlcmsmetaoctober

### Embed Badge

![Health badge](/badges/bennothommo-oc-meta-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/bennothommo-oc-meta-plugin/health.svg)](https://phpackages.com/packages/bennothommo-oc-meta-plugin)
```

###  Alternatives

[october/rain

October Rain Library

1601.7M63](/packages/october-rain)[offline/oc-mall-plugin

E-commerce solution for October CMS

1744.6k2](/packages/offline-oc-mall-plugin)[abwebdevelopers/oc-imageresize-plugin

Image resizing made easy for October CMS

141.3k](/packages/abwebdevelopers-oc-imageresize-plugin)

PHPackages © 2026

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