bound1ess / dot
dot.notation.in.php.made.simple
1.0.0
2015-01-05 14:16 UTC
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2024-12-21 15:54:57 UTC
README
Dot notation in PHP made simple.
Installation
composer require bound1ess/dot:~1
Usage
For more information, check out the docs
folder.
$data = new Bound1ess\Dot([ 'foo' => [ 'bar' => 42, 'baz' => null, ], ]); echo $data['foo.bar']; // 42 var_dump(isset ($data['foo.baz'])); // true unset ($data['foo.bar']); $data['foo.some.path'] = false; var_dump($data->toArray()); // ['foo' => ['some' => ['path' => false], 'baz' => null]]
License
The MIT license (see LICENSE
file for more details).