bound1ess / dot
dot.notation.in.php.made.simple
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bound1ess/dot
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2025-10-11 19:43:59 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).