2017 © Pedro Peláez
 

library php-object-chain

物件索引鍊

image

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

The README.md

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

The Versions

08/09 2016

dev-master

9999999-dev

物件索引鍊

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Colin

13/07 2015

v0.0.2

0.0.2.0

物件索引鍊

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Colin

08/07 2015

v0.0.1

0.0.1.0

物件索引鍊

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Colin