library config
Replacing defines in global scope with static class values.
rimksky/config
Replacing defines in global scope with static class values.
- Thursday, June 8, 2017
- by rimksky
- Repository
- 1 Watchers
- 0 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 6 Versions
- 0 % Grown
php-config-class
Overview
"php-config-class" is very simple libary for php.
This library is assumed to be replacing "define" function with static class value.
if using this, Config parameters in your application use like global variable,
but not using global variable., (*1)
System Requirements
- PHP 5.4.0 or greater
- Composer
Installation
% php composer require rimksky/config
How to use
<?php
require_once( __DIR__."/vendor/autoload.php" );
use Rimksky\Util\Config;
// you can use in anywhere scope.
Config::getInstance()->your_param = "test"; // setting value
echo Config::getInstance()->your_param."\n"; // getting value
// alternative method
Config::i()->your_param2 = "test"; // setting value
echo Config::i()->your_param2."\n"; // getting value
Notice
Set value by Config::__set() magic method is not const value., (*2)
License
"php-config-class" is licensed under The MIT License (MIT)., (*3)
dev-master
9999999-dev
Replacing defines in global scope with static class values.
Sources
Download
MIT
The Requires
by
rimksky
v0.1.1
0.1.1.0
Replacing defines in global scope with static class values.
Sources
Download
MIT
The Requires
by
rimksky
v0.1.0
0.1.0.0
Replacing defines in global scope with static class values.
Sources
Download
MIT
The Requires
by
rimksky
v0.0.3
0.0.3.0
Replacing defines in global scope with static class values.
Sources
Download
MIT
The Requires
by
rimksky
v0.0.2
0.0.2.0
Replacing defines in global scope with static class values.
Sources
Download
MIT
The Requires
by
rimksky
v0.0.1
0.0.1.0
Replacing defines in global scope with static class values.
Sources
Download
MIT
The Requires
by
rimksky