gavinggordon/predefiner

A simple package to quickly and dynamically set PHP constants.

1.0.0 2016-04-15 03:38 UTC

This package is not auto-updated.

Last update: 2024-11-21 00:49:00 UTC


README

Build Status Packagist Version Github Release Usage License

Description

This class (GGG\Config\Predefiner) is a simple package to quickly and dynamically set PHP constants.

Usage

Installation

	composer require gavinggordon/predefiner

Examples

Instantiation:

	include_once( __DIR__ . '/vendor/autoload.php' );
	
	$predefiner = new \GGG\Config\Predefiner();

Setting:

	$predefiner->set( ['API_KEY' => 'abc123def456hij789klm0'] );

Initializing:

	$predefiner->init();
	
	echo API_KEY;
	// Result: 'abc123def456hij789klm0';

Issues

If you have any issues at all, please post your findings in the issues page at https://github.com/gavinggordon/predefiner/issues.

License

This package utilizes the MIT License.