starbug / bundle
A simple object abstraction for working with nested array structures.
Installs: 7 074
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-26 10:58:04 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.