PHPackages                             apility/attribute-list - 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. apility/attribute-list

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

apility/attribute-list
======================

A helper class for generating attribute lists.

v1.0.2(3y ago)02.1k1BeerwarePHP

Since Oct 15Pushed 3y ago3 watchersCompare

[ Source](https://github.com/apility/attribute-list)[ Packagist](https://packagist.org/packages/apility/attribute-list)[ RSS](/packages/apility-attribute-list/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

AttributeList
=============

[](#attributelist)

AttributeList is a helper class for generating attribute lists for markup.

[![License: Beerware](https://camo.githubusercontent.com/bfdebf32d34f816c56fc7d60b1ae3fab298f74924b2492043ed94af99d162a01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d62656572776172652d677265656e2e737667)](https://spdx.org/licenses/Beerware)[![Version](https://camo.githubusercontent.com/aa0bf267f6cbdad136f028b4ce74a7596349ef4d8a13881bcf43c860f71e5067/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6170696c6974792f4174747269627574654c6973742e7376673f6c6162656c3d76657273696f6e)](https://github.com/apility/AttributeList/releases/latest)[![CircleCI](https://camo.githubusercontent.com/7d0774a3bf1ae187cade5c3880d9785c881b17def2f1051645e350c9ae964bfd/68747470733a2f2f636972636c6563692e636f6d2f67682f6170696c6974792f4174747269627574654c6973742e7376673f7374796c653d736869656c6426636972636c652d746f6b656e3d36323862353866303331666636386434366630643131623731353363623763666666633536633164)](https://circleci.com/gh/apility/AttributeList)

**[Documentation](http://htmlpreview.github.io/?https://github.com/apility/AttributeList/blob/master/docs/index.html)**

Installation
------------

[](#installation)

Use the package manager [Composer](https://getcomposer.org/) to install AttributeList.

```
composer require apility/attribute-list
```

Usage
-----

[](#usage)

```
use Apility\AttributeList\AttributeList;

$attributes = new AttributeList();
$attributes->addAttribute('class', 'button');
$attributes->addAttribute('loading', false);
$attributes->addAttribute('items', ['Item 1', 'Item 2', 'Item 3']);

echo "toVuePropsString()}>";
```

License
-------

[](#license)

[Beerware License](https://spdx.org/licenses/Beerware)

 wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~562 days

Total

3

Last Release

1283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93300f1d57e4f198d035a680f1de6a8635becc12052acbe74a08f578b124863b?d=identicon)[cathrinevaage](/maintainers/cathrinevaage)

![](https://www.gravatar.com/avatar/69fe60755c4db1cbc656a1553ccbcd028ca659b7de703366854370cd588b1906?d=identicon)[erikdju](/maintainers/erikdju)

---

Top Contributors

[![erikdju](https://avatars.githubusercontent.com/u/1689799?v=4)](https://github.com/erikdju "erikdju (2 commits)")[![cathrinevaage](https://avatars.githubusercontent.com/u/8112742?v=4)](https://github.com/cathrinevaage "cathrinevaage (1 commits)")[![thomas-alrek](https://avatars.githubusercontent.com/u/14291825?v=4)](https://github.com/thomas-alrek "thomas-alrek (1 commits)")

---

Tags

hacktoberfest

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/apility-attribute-list/health.svg)

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

###  Alternatives

[drupol/drupal-conventions

Drupal conventions for coding.

2422.7k1](/packages/drupol-drupal-conventions)

PHPackages © 2026

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