apility/attribute-list
Composer 安装命令:
composer require apility/attribute-list
包简介
A helper class for generating attribute lists.
README 文档
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.
统计信息
- 总下载量: 2.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: Beerware
- 更新时间: 2019-04-10