2017 © Pedro Peláez
 

library environment

Very basic environmental settings management library

image

primal/environment

Very basic environmental settings management library

  • Tuesday, November 13, 2012
  • by ChiperSoft
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Primal.Environment

Created and Copyright 2012 by Jarvis Badgley, chiper at chipersoft dot com., (*1)

Environment is a very simple data storage class for saving and retrieving environmental configuration variables, such as would be defined in a project's config file., (*2)

  • Any value can be stored or retrieved by calling a function with the name, prefixed by get or set.
  • Example: $env->setConvertPath('/path/to/convert') or $env->getConvertPath()
  • Values can also be set or retrieved directly by name: $env->convertPath
  • Set functions return $this to allow chaining
  • Any undefined value will retrieve as null

Example:

//config.php
Environment::Singleton()
    ->setName('development')
    ->setDBName('PrimalTest')
    ->setDBUser('php')
    ->setDBPassword('Ornare856')
    ->setDebug(true)
;

The Versions

13/11 2012

dev-master

9999999-dev http://github.com/PrimalPHP/Environment

Very basic environmental settings management library

  Sources   Download

MIT

The Requires

  • php >=5.3.10