starbug/bundle

There is no license information available for the latest version (v1.1) of this package.

A simple object abstraction for working with nested array structures.

v1.1 2021-01-26 02:46 UTC

This package is auto-updated.

Last update: 2024-04-26 09:59:41 UTC


README

The Bundle class is a simple object abstraction for working with nested array structures.

Basic example:

use Starbug\Bundle\Bundle;

$bundle = new Bundle();

$bundle->set("user", "first_name", "Abdul");

$bundle->get("user", "first_name"); // returns Abdul
$bundle->has("user", "first_name"); // return true


$bundle->set("user", "address", "city", "Vancouver");

$bundle->get("user", "address", "city"); // returns Vancouver
$bundle->has("user", "address", "city"); // returns true

See the specification for more details.