PHPackages                             rdmtr/phpemmet - 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. rdmtr/phpemmet

ActiveLibrary

rdmtr/phpemmet
==============

PHP implementation of emmet.io DOM elements generator

v1.0(6y ago)05PHPPHP ^7.2

Since Jun 1Pushed 6y agoCompare

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

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

PHPEmmet
========

[](#phpemmet)

[![codecov.io](https://camo.githubusercontent.com/6d75ad7d376750845ccd3da04dbddca5b67d49c3791da8c121786de5691a2683/68747470733a2f2f636f6465636f762e696f2f67682f72646d74722f706870656d6d65742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](http://codecov.io/gh/rdmtr/phpemmet/branch/master)[![Build Status](https://camo.githubusercontent.com/0bec4dc37437d9a3bdb94b630796ee46a710f98be728a7080b0ca7335d05b1ff/68747470733a2f2f7472617669732d63692e636f6d2f72646d74722f706870656d6d65742e706e67)](https://travis-ci.com/rdmtr/phpemmet)

Usage
=====

[](#usage)

PHPEmmet generate DOM elements using emmet.io [abbreviation syntax](https://docs.emmet.io/abbreviations/syntax/).

For example:

```
$html = Emmet::new()->make('(header>div*2)+footer>p')->saveHtml();
```

```

```

Or you can use existing DomElement to add children to it:

```
$doc = new \DOMDocument();
$elem = $doc->createElement('body');
$doc->appendChild($elem);

$html = $this->emmet->make('(header>div*2)+footer>p', $elem)->saveHTML();
```

```

```

Supported Aggregators
---------------------

[](#supported-aggregators)

`>, ^, +, *`

Used for chainable tree building. Defines child, parent and sibling elements relations.

Supported Modificators
----------------------

[](#supported-modificators)

`.class#id{content}[data-attr data-test=test]`

Defines modification of current element: multiplication and elements descriptions (attributes, content etc.).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2539d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f2f4f83fe1a87e5fb22a9702b464fff313380173361842de737a8e2faee7d62?d=identicon)[rusakdmitry](/maintainers/rusakdmitry)

---

Top Contributors

[![rdmtr](https://avatars.githubusercontent.com/u/29782636?v=4)](https://github.com/rdmtr "rdmtr (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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