2017 © Pedro Peláez
 

library parameter-tree

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

image

arcanum/parameter-tree

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  • Sunday, August 7, 2016
  • by ppanther
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3,072 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

PHP ParameterTree

ParameterTree is a multi-dimensional, namespaced parameter bag simplifying access to multidimensional arrays (such as configs, GET/POST/SESSION params, etc), with default return values and typecasting., (*1)

Basic Usage

$dbConfig = new ParameterTree(
    [   
        "master"=>[
            "host"=>"db.com",
            "user"=>"DB-DUDE",
            "pass"=>"super-secret123",
            "port"=>"3306"
        ]
    ]
);
echo $dbConfig->get("master.host","localhost"); //db.com
echo $dbConfig->get("slave.host","localhost"); //localhost
var_dump($dbConfig->hasKey("master.host")); //true
var_dump($dbConfig->hasKey("master.soup")); //false
$dbConfig->set("slave.pass","abc123");
var_dump($config->toArray()); // ["master"=>["host"=>"db.com","user"=>"DB-DUDE","pass"=>"super-secret123","port"=>"3306],"slave"=>["pass"=>"abc123"]]

License

ParameterTree is open-sourced software licensed under the MIT license, (*2)

The Versions

07/08 2016

dev-master

9999999-dev

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Adam Benson

05/08 2016

2.0.1

2.0.1.0

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Adam Benson

02/08 2016

2.0.0

2.0.0.0

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Adam Benson

02/06 2016

1.0.2

1.0.2.0

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Adam Benson

19/05 2016

1.0.1

1.0.1.0

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Adam Benson

20/01 2015

1.0.0

1.0.0.0

Namespaced accessors for multi-dimensional trees of parameters (such as POST/GET, config, etc)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Adam Benson