PHPackages                             nepada/meta-control - 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. nepada/meta-control

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nepada/meta-control
===================

Nette control for managing meta data in HTML header.

v1.6.0(7mo ago)53.7k↓50%1BSD-3-ClausePHPPHP &gt;=8.1.0 &lt;8.6CI passing

Since Sep 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/nepada/meta-control)[ Packagist](https://packagist.org/packages/nepada/meta-control)[ RSS](/packages/nepada-meta-control/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (18)Used By (0)

Meta Control
============

[](#meta-control)

[![Build Status](https://github.com/nepada/meta-control/workflows/CI/badge.svg)](https://github.com/nepada/meta-control/actions?query=workflow%3ACI+branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/751677d9f3253256caade2f159738d9b75d1b605892772f9f1f840f3f860912b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e65706164612f6d6574612d636f6e74726f6c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nepada/meta-control?branch=master)[![Downloads this Month](https://camo.githubusercontent.com/c884ebc60d8d4aa78b3d0aca068bc1f7b822a7cb3f446572807a7a27b722c878/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e65706164612f6d6574612d636f6e74726f6c2e737667)](https://packagist.org/packages/nepada/meta-control)[![Latest stable](https://camo.githubusercontent.com/2fdaf330425d9c3d44c4cd4e8def20efe660cfd5fd1616847e2fe09dafdf9631/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65706164612f6d6574612d636f6e74726f6c2e737667)](https://packagist.org/packages/nepada/meta-control)

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

[](#installation)

Via Composer:

```
$ composer require nepada/meta-control
```

Usage
-----

[](#usage)

First register the control factory in your config and optionally set up default metadata:

```
services:
    -
        implement: Nepada\MetaControl\MetaControlFactory
        setup:
            - setCharset('utf-8')
            - setAuthor('Jon Doe')
```

Use the control factory in your presenter:

```
protected function createComponentMeta(): Nepada\MetaControl\MetaControl
{
    $control = $this->metaControlFactory->create();
    $control->setDescription('Lorem ipsum');
    return $control;
}
```

And render it in your Latte template:

```

    {control meta}

    ...

```

### Overview of supported meta tags

[](#overview-of-supported-meta-tags)

Charset:

```
//
$control->setCharset('utf-8');
$control->getCharset(); // 'utf-8'
```

Document metadata:

```
//
$control->setMetadata('author', 'Jon Doe');
$control->getMetadata('author'); // 'Jon Doe'
```

Document properties:

```
//
$control->setProperty('og:title', 'Foo title');
$control->getProperty('og:title'); // 'Foo title'
```

Pragma directives:

```
//
$control->setPragma('content-type', 'text/html; charset=UTF-8');
$control->getPragma('content-type'); // 'text/html; charset=UTF-8'
```

### Shorthands for standard metadata

[](#shorthands-for-standard-metadata)

Author:

```
//
$control->setAuthor('Jon Doe');
$control->getAuthor(); // 'Jon Doe'
```

Description:

```
//
$control->setDescription('Lorem ipsum');
$control->getDescription(); // 'Lorem ipsum'
```

Keywords:

```
//
$control->setKeywords('foo', 'bar');
$control->addKeyword('baz');
$control->getKeywords(); // ['foo', 'bar', 'baz']
```

Robots:

```
//
$control->setRobots('noindex, nofollow');
$control->getRobots(); // 'noindex, nofollow'
```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance75

Regular maintenance activity

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 57.7% 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 ~244 days

Recently: every ~274 days

Total

13

Last Release

233d ago

PHP version history (8 changes)v1.0.0PHP &gt;=7.1.0

v1.1.0PHP &gt;=7.2.0

v1.2.0PHP &gt;=7.4.0

v1.4.0PHP &gt;=7.4.0 &lt;8.2

v1.4.1PHP &gt;=7.4.0 &lt;8.3

v1.5.0PHP &gt;=8.1.0 &lt;8.4

v1.5.1PHP &gt;=8.1.0 &lt;8.5

v1.6.0PHP &gt;=8.1.0 &lt;8.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4780fe328102c4572737db639653c29d3081d1d3e051467f00d7f09a776399?d=identicon)[xificurk](/maintainers/xificurk)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (154 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (113 commits)")

---

Tags

netteheadercomponentmeta

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nepada-meta-control/health.svg)

```
[![Health](https://phpackages.com/badges/nepada-meta-control/health.svg)](https://phpackages.com/packages/nepada-meta-control)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)[uestla/twigrid

Experimental DataGrid for Nette Framework

1712.3k2](/packages/uestla-twigrid)

PHPackages © 2026

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