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

Abandoned → [bennothommo/wn-meta-plugin](/?search=bennothommo%2Fwn-meta-plugin)October-plugin

pensoft/oc-meta-plugin
======================

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

1.0.2(4d ago)010↓100%MITPHPPHP &gt;=8.0

Since Jul 29Pushed 4d agoCompare

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

READMEChangelog (2)DependenciesVersions (4)Used By (0)

**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

45

—

FairBetter than 93% of packages

Maintenance99

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~846 days

Total

3

Last Release

4d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0.8

1.0.2PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fb92632a52a188f3c34442b532e0f8d355604ef87577a0d2c37edbdd4e14bd5?d=identicon)[pensoft](/maintainers/pensoft)

---

Top Contributors

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

---

Tags

pluginlinkhtmlcmsmetaoctober

### Embed Badge

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

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

###  Alternatives

[martin/forms-plugin

Create easy (and almost magic) AJAX forms

601.3k](/packages/martin-forms-plugin)

PHPackages © 2026

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