PHPackages                             brightnucleus/config-52 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. brightnucleus/config-52

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

brightnucleus/config-52
=======================

Minimal, reusable Config component (without namespaces)

v0.1.0(10y ago)0562MITPHP

Since Mar 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/brightnucleus/config-52)[ Packagist](https://packagist.org/packages/brightnucleus/config-52)[ RSS](/packages/brightnucleus-config-52/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (2)

Bright Nucleus Config 5.2
=========================

[](#bright-nucleus-config-52)

Config component that does not use namespaces, to be used in PHP 5.2 projects.

[![Latest Stable Version](https://camo.githubusercontent.com/95993c4ec95a94ce7fa924faa65af0c7c7a2ab7d0cd5c548bb39ad156795d38d/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f636f6e6669672d35322f762f737461626c65)](https://packagist.org/packages/brightnucleus/config-52)[![Total Downloads](https://camo.githubusercontent.com/1ea4e72730f5ad9058de9d8bb350e82d2d192ce6f8053b880376929ba74d675c/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f636f6e6669672d35322f646f776e6c6f616473)](https://packagist.org/packages/brightnucleus/config-52)[![Latest Unstable Version](https://camo.githubusercontent.com/08a18284fd23a798374700db0191aa0339196cd8a3332cc15b7c8d465b993730/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f636f6e6669672d35322f762f756e737461626c65)](https://packagist.org/packages/brightnucleus/config-52)[![License](https://camo.githubusercontent.com/c8f8c1aa0b84fbf4ec798651894d2ae72fda80bb57063d9568075f55fbde8299/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f636f6e6669672d35322f6c6963656e7365)](https://packagist.org/packages/brightnucleus/config-52)

Table Of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Contributing](#contributing)
- [License](#license)

Introduction
------------

[](#introduction)

Bright Nucleus Config 5.2 is a Config component similar to [brightnucleus/config](https://github.com/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
------------

[](#installation)

To include the library in your project, you can use Composer:

```
composer require brightnucleus/config-52
```

Alternatively, you can copy the classes inside of your application and make sure that your application can find them.

Basic Usage
-----------

[](#basic-usage)

To use the component within your project, you should first load the 5.2 autoloader:

```
require dirname(__FILE__) . '/vendor/autoload_52.php';
```

Here's an example of how to use the class once it's been loaded:

```
