vbpupil/attributes 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vbpupil/attributes

Composer 安装命令:

composer require vbpupil/attributes

包简介

A simple Attributes mechanism which makes managing attributes easy.

README 文档

README

PHP 5.6 Build Status Code Climate License: MIT

Attributes

A simple Attributes mechanism that makes keeping track of settings a lot more manageable.

Sample Usage

include 'vendor/autoload.php';

use vbpupil\Attributes;
use vbpupil\Attribute;


//create individual attribute
$attr = new Attribute(['foo'=>'bar']);
$attr->getKey();
$attr->getValue();


//create a new bunch of attributes
try {
    $attrs = new Attributes(
        [
            new Attribute(['product_code'=>'126FGE']),
            new Attribute(['sell_price'=>3.80]),
            new Attribute(['buy_price'=>1.90])
        ],
        [
            'product_code'
        ]
    );
} catch (\Exception $e) {

}

$attrs->getAttribute('product_code');
$attrs->getAttribute('product_code')->getValue();

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固