cogentParadigm / starbug-bundle

A simple object abstraction for working with nested array structures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bundle

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.

About

A simple object abstraction for working with nested array structures.

License:MIT License


Languages

Language:PHP 100.0%