Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 154 | All time: 9,043 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.
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
Data | scrutinizer | ||
![]() |
Data | travis.ci | ||
![]() |
Data | composer file | ||
![]() |
Doc. | Documentation | ||
![]() |
Data | phpunit file | ||
![]() |
Doc. | info and examples |
![]() |
/ | config |
File | Role | Description |
---|---|---|
![]() |
Aux. | user config values |
![]() |
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. |
![]() |
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 |