PHPackages                             lemonade/component\_meta - 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. lemonade/component\_meta

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

lemonade/component\_meta
========================

A lightweight PHP library for generating SEO &amp; social meta tags (HTML &lt;meta&gt;, OpenGraph, Twitter Cards, DC tags, …).

v2.2.0(9mo ago)07MITPHPPHP &gt;=8.1 &lt;8.5

Since Sep 11Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/johnnyxlemonade/component_meta)[ Packagist](https://packagist.org/packages/lemonade/component_meta)[ RSS](/packages/lemonade-component-meta/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

🍋 Lemonade Component: Meta
==========================

[](#-lemonade-component-meta)

[![Packagist](https://camo.githubusercontent.com/c3f9ac3cf99e8dcceb3cb8e2f586591995780ba640fd4db55cc543c10c2c9bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656d6f6e6164652f636f6d706f6e656e745f6d6574612e737667)](https://packagist.org/packages/lemonade/component_meta)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/837b01c3a4445716199ec675e76fa287b1e54d673d3f44fe493e1c19f32bd85a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312532302d2d253230382e342d626c7565)](https://camo.githubusercontent.com/837b01c3a4445716199ec675e76fa287b1e54d673d3f44fe493e1c19f32bd85a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312532302d2d253230382e342d626c7565)[![Tests](https://camo.githubusercontent.com/3ab4882a1b7d64e5eb5168ad0b0b9cdfd53f59f114ee5f727958504214a5789c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d70617373696e672d627269676874677265656e2e737667)](vendor/bin/phpunit)

Lightweight OOP component for generating SEO &amp; social meta tags (HTML ``, OpenGraph, Twitter Cards, DC tags, …) in Lemonade Framework projects.

---

✨ Features
----------

[](#-features)

- Strongly typed `MetaData` object
- Unified `MetaEntityInterface` for all meta entities
- Minimalistic tag classes (`MetaTag`, `OpenGraphTag`, `TwitterTag`, `DcTag`, `LinkTag`, `TitleTag`)
- Extensible: add your own meta entities or custom tags
- Safe HTML escaping and `readonly` properties
- Implements `Stringable` → render directly in templates

---

🚀 Installation
--------------

[](#-installation)

```
  composer require lemonade/component_meta
```

🔧 Usage
-------

[](#-usage)

```
use Lemonade\Meta\MetaData;
use Lemonade\Meta\MetaFactory;

// 1. Prepare meta data
// Create a data object that contains all information for SEO and social networks.
$data = new MetaData(
    websiteName: "Lemonade Framework",
    title: "Knihovna pro meta tagy",
    description: "Elegantní a efektivní PHP knihovna pro generování HTML meta tagů. Ideální pro webové stránky a CMS.",
    keywords: "php, framework, seo, meta, tagy, web, vývoj, knihovna",
    author: "Honza Mudrák",
    robots: "index,follow",
    canonical: "https://lemonadeframework.cz/",
    image: "https://cdn.lemonadeframework.cz/framework/small/color.png",
    custom: [
        "google-site-verification" => "J-QyBfS-jXv18vF-k4B2SgM_mD3E0E2Y9VzV8F",
        "robots" => "index,follow",
        "seznam-wmt" => "1234567890abcdef",
        "og:type" => "website",
        "og:locale" => "cs_CZ",
        "fb:app_id" => "1234567890",
        "twitter:site" => "@lemonade_cz"
    ]
);

// 2. Create a factory instance for generating tags
// Pass in the prepared data.
$metaFactory = new MetaFactory($data);

// 3. Generate and output HTML code
// MetaFactory implements Stringable, so you can echo it directly
echo $metaFactory;
```

📖 Changelog
-----------

[](#-changelog)

All notable changes are documented in the [CHANGELOG.md](CHANGELOG.md).

🧪 Development &amp; Testing
---------------------------

[](#-development--testing)

This package is fully covered by PHPUnit tests and verified with **PHPStan Level 10**.

Run PHPUnit tests:

```
composer install
vendor/bin/phpunit
vendor/bin/phpunit -c vendor/lemonade/component_meta/phpunit.xml --bootstrap vendor/autoload.php
```

Run static analysis:

```
  composer phpstan
```

📜 License
---------

[](#-license)

Released under the [MIT License](LICENSE).
Copyright © 2025 Jan Mudrák

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance58

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

6

Last Release

276d ago

Major Versions

v1.0.0 → v2.0.02025-09-12

PHP version history (2 changes)v1.0.0PHP &gt;=8.1 &lt;8.3

v2.0.1PHP &gt;=8.1 &lt;8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3079458?v=4)[Johnny X. Lemonade](/maintainers/johnnyxlemonade)[@johnnyxlemonade](https://github.com/johnnyxlemonade)

---

Top Contributors

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

---

Tags

htmltwittertagsseometaopengraphlemonadedublin-core

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lemonade-component-meta/health.svg)

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

###  Alternatives

[arcanedev/seo-helper

SEO Helper is a framework agnostic package that provides tools &amp; helpers for SEO (Laravel supported).

337471.4k4](/packages/arcanedev-seo-helper)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M61](/packages/nystudio107-craft-seomatic)[honeystone/laravel-seo

SEO metadata and JSON-LD package for Laravel.

35590.0k](/packages/honeystone-laravel-seo)[kunstmaan/seo-bundle

Annotating content with metadata for social sharing and seo purposes cannot be overlooked nowadays. The KunstmaanSeoBundle contains default editing functionality for OpenGraph data, meta descriptions, keywords and titles and Metriweb tags. Because the metatagging and tracking options are always changing, a free field to add custom header information is provided as well.

28132.1k2](/packages/kunstmaan-seo-bundle)[fomvasss/laravel-meta-tags

A package to manage SEO (meta-tags, xml-fields, etc.)

3129.8k](/packages/fomvasss-laravel-meta-tags)[calotype/seo

A package containing SEO helpers.

742.6k](/packages/calotype-seo)

PHPackages © 2026

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