Download the PHP package brightnucleus/config-52 without Composer
On this page you can find all versions of the php package brightnucleus/config-52. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brightnucleus/config-52
More information about brightnucleus/config-52
Files in brightnucleus/config-52
Package config-52
Short Description Minimal, reusable Config component (without namespaces)
License MIT
Informations about the package config-52
Bright Nucleus Config 5.2
Config component that does not use namespaces, to be used in PHP 5.2 projects.
Table Of Contents
- Introduction
- Installation
- Basic Usage
- Contributing
- License
Introduction
Bright Nucleus Config 5.2 is a Config component similar to brightnucleus/config, but it does not use PHP namespaces, so that it can be used in projects that need to work on PHP 5.2.
As it uses Composer, it will need PHP 5.3.2+ to use during development. However, there's a PHP 5.2 autoloader file that is generated, so that you only need PHP 5.2+ at runtime.
This is a very reduced form of a Config component, though, and is meant to provide a very basic way for PHP 5.2 libraries to read existing config files. There's no default values, no validation, no fancy convenience functions.
Installation
To include the library in your project, you can use Composer:
Alternatively, you can copy the classes inside of your application and make sure that your application can find them.
Basic Usage
To use the component within your project, you should first load the 5.2 autoloader:
Here's an example of how to use the class once it's been loaded:
Contributing
All feedback / bug reports / pull requests are welcome.
License
This code is released under the MIT license. For the full copyright and license information, please view the LICENSE file distributed with this source code.