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

v1.2.13 2019-11-10 10:10 UTC

This package is auto-updated.

Last update: 2022-06-10 15:29:57 UTC


Build Status Maintainability Test Coverage Style CI License Latest stable PHP

Inspired by ParameterBag I decided to create a new repository that contains a similiar class with a few adjustments.


PHP 7.0.0 or later.


You can install it via Composer by typing the following command:

composer require railken/bag

Getting Started

Simple usage looks like:

use Railken\Bag;

# Initialization
$bag = new Bag();
$bag = new Bag(['foo' => '1']);

# Setting
$bag->set('foo', 1)->set('fee', 2);

# Getting
$bag->foo; #1
$bag->get('bar', 3); #3


Open-source software licensed under the MIT license.