rubellum / phpbag
phpbag is a container for key/value pairs.
v1.0.0
2017-12-09 01:23 UTC
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ^4.8.35 || ^5.0
This package is not auto-updated.
Last update: 2024-11-07 19:03:38 UTC
README
phpbag is a container for key/value pairs.
Install
Via Composer
$ composer require rubellum/phpbag
Requires PHP 5.5 or newer.
Usage
<?php use Bag\Bag; $bag = new Bag(['aaa' => 'bbb', 'ccc' => 'ddd']); // array access echo $bag['aaa']; // => 'bbb' // property access echo $bag->aaa; // => 'bbb'
Testing
$ ./vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.