apility / attribute-list
A helper class for generating attribute lists.
Installs: 2 076
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 0
Requires (Dev)
- brainmaestro/composer-git-hooks: dev-master
- squizlabs/php_codesniffer: ^3.0@dev
This package is auto-updated.
Last update: 2024-12-13 06:35:51 UTC
README
AttributeList is a helper class for generating attribute lists for markup.
Installation
Use the package manager Composer to install AttributeList.
composer require apility/attribute-list
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 "<vue-component {$attributes->toVuePropsString()}></vue-component>";
License
cathrine.vaage@gmail.com 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.