Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 154 | All time: 9,040 This week: 206 |
Version | License | PHP version | Categories | |||
predefiner 1.0.1 | MIT/X Consortium ... | 5.4 | PHP 5, Tools, Text processing, Code G..., C... |
Description | Author | |
This class can dynamically define PHP constant values. |
This class (GGG\Config\Predefiner) is a simple package to quickly and dynamically set PHP constants.
composer require gavinggordon/predefiner
include_once( __DIR__ . '/vendor/autoload.php' );
$predefiner = new \GGG\Config\Predefiner();
$predefiner->set( ['API_KEY' => 'abc123def456hij789klm0'] );
$predefiner->init();
echo API_KEY;
// Result: 'abc123def456hij789klm0';
If you have any issues at all, please post your findings in the issues page at https://github.com/gavinggordon/predefiner/issues.
This package utilizes the MIT License.
Files (10) |
File | Role | Description | ||
---|---|---|---|---|
config (2 files) | ||||
src (1 file) | ||||
tests (1 file) | ||||
.scrutinizer.yml | Data | scrutinizer | ||
.travis.yml | Data | travis.ci | ||
composer.json | Data | composer file | ||
LICENSE.txt | Doc. | Documentation | ||
phpunit.xml | Data | phpunit file | ||
readme.md | Doc. | info and examples |
Files (10) | / | config |
File | Role | Description |
---|---|---|
user_app_config.php | Aux. | user config values |
user_app_configTemplate.php | Aux. | base config values template file |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
100% | 1 |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
PHP Constant Groups | It is required, in order to dynamically set definitions for keywords used as constants. | Required |
Related pages |
Related github page |
related packagist page |