PHPackages                             colbygatte/el - 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. colbygatte/el

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

colbygatte/el
=============

v0.0.2(7y ago)012PHP

Since Apr 9Pushed 7y agoCompare

[ Source](https://github.com/colbygatte/el)[ Packagist](https://packagist.org/packages/colbygatte/el)[ RSS](/packages/colbygatte-el/feed)WikiDiscussions master Synced 2d ago

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

El
==

[](#el)

Quickly format HTML elements.

`composer require colbygatte/el`

Example
-------

[](#example)

```
$data = [
    ['h1', 'h2', 'h3'],
    ['a1', 'a2', 'a3'],
    ['b1', 'b2', 'b3'],
    ['c1', 'c2', 'c3'],
];

$table = el($data)
    ->at(0)->each('th')->top()
    ->slice(1)->depth(1)->each('td')->top()
    ->each('tr')
    ->tag('table')
    ->str();

echo $table;
```

Will output (as a single line):

```

        h1
        h2
        h3

        a1
        a2
        a3

        b1
        b2
        b3

        c1
        c2
        c3

```

Breakdown

```
// Create a new Element.
el($data)
    // At index 0, iterate over it's child elements and tag them with ,
    // then move from the index 0 back to the top level.
    ->at(0)->each('th')->top()

    // Grab a slice from index 1 to the end of the array,
    // then iterate one level deep, tagging each found element with
    // then move back to the top level.
    ->slice(1)->depth(1)->each('td')->top()

    // Now back at the top level, tag each element with tr.
    ->each('tr')

    // Tag the entire top level with table.
    ->tag('table')

    // Convert to a string.
    // Implements __toString(), so this can be type casted to string or
    // echoed without calling str().
    ->str();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

2638d ago

### Community

Maintainers

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

---

Top Contributors

[![colbygatte](https://avatars.githubusercontent.com/u/20339044?v=4)](https://github.com/colbygatte "colbygatte (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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