PHPackages                             thenlabs/components - 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. thenlabs/components

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

thenlabs/components
===================

A custom implementation of the Composite pattern in PHP for create component types with useful functionalities.

v1.1.3(4y ago)147522MITPHPPHP &gt;=7.2CI failing

Since Apr 21Pushed 3y agoCompare

[ Source](https://github.com/thenlabs/components)[ Packagist](https://packagist.org/packages/thenlabs/components)[ RSS](/packages/thenlabs-components/feed)WikiDiscussions 1.1 Synced 1w ago

READMEChangelogDependencies (5)Versions (18)Used By (2)

Components
==========

[](#components)

A custom implementation of the Composite pattern in PHP for create component types with useful functionalities.

> If you like this project gift us a ⭐.

Features.
---------

[](#features)

- PHP &gt;= 7.2
- Two component types(simple and composite).
- Tree structure.
- Dependency management.
- Useful methods for filter and iterate over the tree.
- Events dispatching.
- Event propagation(capture and bubbling) across the tree.
- Support of custom data.

Installation.
-------------

[](#installation)

```
$ composer require thenlabs/components

```

Documentation.
--------------

[](#documentation)

1. English (Pending)
2. [Español](https://github.com/thenlabs/doc/blob/master/components/1.0/en/index.md)

Development.
------------

[](#development)

Clone this repository and install the Composer dependencies.

```
$ composer install

```

### Running the tests.

[](#running-the-tests)

All the tests of this project was written with our testing framework [PyramidalTests](https://github.com/thenlabs/pyramidal-tests) wich is based on [PHPUnit](https://phpunit.de).

Run tests:

```
$ composer test

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Recently: every ~119 days

Total

18

Last Release

1268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff9241f3ee1e25a0a016399ff1ae829fea13ed7493c62627ac5068ae61c39197?d=identicon)[andaniel05](/maintainers/andaniel05)

---

Top Contributors

[![andaniel05](https://avatars.githubusercontent.com/u/21297818?v=4)](https://github.com/andaniel05 "andaniel05 (227 commits)")

---

Tags

component-architecturecomponent-basedcomponent-librarycomponentscomponents-librarycompositecomposite-patternphpphp-librarycompositecomponent-basedcomposite-patterncomponent-architecture

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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