library php-object-chain
物件索引鍊
colindev/php-object-chain
物件索引鍊
- Thursday, September 8, 2016
- by colindev
- Repository
- 1 Watchers
- 0 Stars
- 6 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
colin/object-chain
php 物件/陣列 索引鍊, (*1)
install
設定依賴套件,並更新, (*2)
composer require colin/object-chain
composer update
test
執行單元測試, (*3)
phpunit
sample
use Colin\ObjectChain;
$data = new ObjectChain(json_decode('{"key":"hello","vary":{"depth":{"key":"found"}}}'));
$data->{'key'}->value();// return 'hello'
$data['key']->value();// return 'hello'
$data['vary']['depth']['key']->value();// return 'found'
$data['vary']['depth']['depth']['key']->value();// return null
dev-master
9999999-dev
物件索引鍊
Sources
Download
MIT
The Requires
The Development Requires
by
Colin
v0.0.2
0.0.2.0
物件索引鍊
Sources
Download
MIT
The Requires
The Development Requires
by
Colin
v0.0.1
0.0.1.0
物件索引鍊
Sources
Download
MIT
The Requires
The Development Requires
by
Colin