dot.notation.in.php.made.simple

Maintainers

Details

github.com/bound1ess/dot

Source

Issues

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/bound1ess/dot

1.0.0 2015-01-05 14:16 UTC

This package is not auto-updated.

Last update: 2025-10-11 19:43:59 UTC


README

Build Status

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).