PHPackages                             tagmaker/tagmaker - 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. tagmaker/tagmaker

AbandonedArchivedLibrary

tagmaker/tagmaker
=================

A dynamic builder of tag elements

0.5.1(13y ago)328MITPHPPHP &gt;= 5.3.0

Since Mar 15Pushed 10y agoCompare

[ Source](https://github.com/CarlosBonetti/TagMaker)[ Packagist](https://packagist.org/packages/tagmaker/tagmaker)[ RSS](/packages/tagmaker-tagmaker/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

**This project is DEPRECATED and not being maintained anymore**.

TagMaker
========

[](#tagmaker)

A dynamic builder of tag elements

Quick Start
-----------

[](#quick-start)

### Instalation

[](#instalation)

Add to your composer.json:

```
"require": {
  "tagmaker/tagmaker": "~0.5"
}

```

### Example of Use

[](#example-of-use)

```
$element = TagMaker::create('a', 'Link', array('class' => 'btn'));
echo $element; // Output: 'Link'
$element->set_href('#');
$element->append_class('btn-large');
echo $element; // Output: 'Link'
```

CSS-Like element creation
-------------------------

[](#css-like-element-creation)

```
$element = TagMaker::create('form.form-vertical#new-post[name=new-post,method=post]');
echo $element; // Output: ''
```

```
$element = TagMaker::create('.row.span6#main {Lorem ipsum}');
echo $element; // Output: 'Lorem ipsum'
```

Magic methods for attributes manipulation
-----------------------------------------

[](#magic-methods-for-attributes-manipulation)

```
$element = TagMaker::create('.content', 'Lorem ipsum');
$element->set_id('main-content');
$element->prepend_class('span6');

// Output: Lorem ipsum
```

Available magic methods for attribute manipulation are: `append_{$attribute}($value)`, `prepend_{$attribute}($value)`, `set_{$attribute}($value)`, `add_{$attribute}()` and `get_{$attribute}()`.

`add_{$attribute}()` tries to add an attribute to an Element, throwing a ExistentAttributeException if that attribute already exists.

`set_{$attribute}()` add an attribute to an Element, overriding it if already exists.

HTML Decoder
============

[](#html-decoder)

TagMaker provides a way to decodes single HTML elements and transforms it to a `TagMaker\Element`. Examples:

```
$element = TagMaker::decode('Lorem ipsum...');
// Will create a TagMaker\Element based at the given HTML
```

Decoder does not support multiple elements (see Limitations).

Limitations
===========

[](#limitations)

The actual version does not support multiple elements.

Is pretended to support multiple elements (for decoding and creation) after 1.0 version.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Total

7

Last Release

4768d ago

### Community

Maintainers

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

---

Top Contributors

[![CarlosBonetti](https://avatars.githubusercontent.com/u/1257281?v=4)](https://github.com/CarlosBonetti "CarlosBonetti (55 commits)")

---

Tags

tagtag makertag builder

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rtconner/laravel-tagging

Use PHP traits to extend Laravel Eloquent Models to allow Tags. Models can be marked as Taggable.

8833.1M14](/packages/rtconner-laravel-tagging)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/tag-interop

Framework interoperable interfaces for tags

10525.0M12](/packages/cache-tag-interop)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M82](/packages/cache-filesystem-adapter)

PHPackages © 2026

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