PHPackages                             cosmos/metatag - 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. cosmos/metatag

ActiveLibrary

cosmos/metatag
==============

A helpful library class for making HTML 'meta' tags.

v3.0.0(6y ago)035[1 PRs](https://github.com/archco/MetaTag/pulls)MITPHPPHP &gt;=7.2.0CI passing

Since Dec 2Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/archco/MetaTag)[ Packagist](https://packagist.org/packages/cosmos/metatag)[ Docs](https://github.com/archco/MetaTag#readme)[ RSS](/packages/cosmos-metatag/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

MetaTag
=======

[](#metatag)

A helpful library class for making HTML `` tags.

Install
-------

[](#install)

```
composer require cosmos/metatag
```

Usage
-----

[](#usage)

### Basic

[](#basic)

```
use Cosmos\MetaTag\MetaTag;

$data = [
  'description' => "A helper class for making html meta tag.",
  'author' => 'John',
  'keywords' => ['PHP', 'Composer', 'Code', 'Github']
];

$metaTag = new MetaTag($data);

echo $metaTag->display();
//
//
//
```

### Access Properties

[](#access-properties)

```
use Cosmos\MetaTag\MetaTag;

$meta = new MetaTag($data);

// add or modify properties.
$meta->author = "James";
$meta->set('name', 'another content');

// get property.
$name = $meta->get('name');

// remove property
$meta->remove('name');
```

License
-------

[](#license)

[MIT License](https://github.com/archco/MetaTag/blob/master/LICENSE)

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance57

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

2317d ago

Major Versions

v1.0.1 → v2.0.02018-07-08

v2.0.0 → v3.0.02020-01-04

PHP version history (3 changes)v1.0.0PHP ^7.0

v1.0.1PHP &gt;=7.0.0

v3.0.0PHP &gt;=7.2.0

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cosmos-metatag/health.svg)

```
[![Health](https://phpackages.com/badges/cosmos-metatag/health.svg)](https://phpackages.com/packages/cosmos-metatag)
```

PHPackages © 2026

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