2017 © Pedro Peláez
 

library environment

PHP Environment Library

image

phpbook/environment

PHP Environment Library

  • Friday, June 22, 2018
  • by phpbook
  • Repository
  • 0 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

About Environment

  • A PHP library to control server environments variables.

Composer Install

composer require phpbook/environment

Declare Configurations

getName(); $name->getDescription(); $name->getValue();
};

/* Get environment variable value */
$version = \PHPBook\Environment\Variable::get('APP-VERSION');
if ($version) { // returns if assigned or null
    $version->getName(); $version->getDescription(); $version->getValue();
};

/* Get all environment variable with values */
$variables = \PHPBook\Environment\Variable::list();
foreach($variables as $variable) {
    $variable->getName();
    $variable->getDescription();
    $variable->getValue();
};

?>
  • Remember when you change the environment variable, you must restart your webserver or shell.

The Versions

22/06 2018

dev-master

9999999-dev https://github.com/phpbook-sources/environment

PHP Environment Library

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Avatar phpbook

php lightweight environment fast

22/06 2018

1.0.3

1.0.3.0 https://github.com/phpbook-sources/environment

PHP Environment Library

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Avatar phpbook

php lightweight environment fast

21/06 2018

1.0.2

1.0.2.0 https://github.com/phpbook-sources/environment

PHP Environment Library

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Avatar phpbook

php lightweight environment fast

14/06 2018

1.0.1

1.0.1.0 https://github.com/phpbook-sources/environment

PHP Environment Library

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Avatar phpbook

php lightweight environment fast

14/06 2018

1.0.0

1.0.0.0 https://github.com/phpbook-sources/environment

PHP Environment Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar phpbook

php lightweight environment fast