PHPackages                             ulrack/configuration - 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. ulrack/configuration

Abandoned → [grizz-it/configuration](/?search=grizz-it%2Fconfiguration)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

ulrack/configuration
====================

Configuration management for PHP applications.

1.0.1(6y ago)084MITPHPPHP ^7.2

Since Nov 14Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

DEPRECATION NOTICE: this package has been moved and improved at [grizz-it/configuration](https://github.com/grizz-it/configuration)
===================================================================================================================================

[](#deprecation-notice-this-package-has-been-moved-and-improved-at-grizz-itconfiguration)

[![Build Status](https://camo.githubusercontent.com/69c7d294b286f5123814673870bac6591037eed4283fd155f47fb66a3f995155/68747470733a2f2f7472617669732d63692e636f6d2f756c7261636b2f636f6e66696775726174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ulrack/configuration)

Ulrack Configuration
====================

[](#ulrack-configuration)

Ulrack Configuration is package that contains a set of classes which make it possible to create package based configuration.

Installation
------------

[](#installation)

To install the package run the following command:

```
composer require ulrack/configuration

```

Usage
-----

[](#usage)

### [Registry](src/Component/Registry/Registry.php)

[](#registry)

The Registry class allows registering data to a key. This object is returned by the [Compiler](src/Common/CompilerInterface.php).

### [PackageLocator](src/Component/Configuration/PackageLocator.php)

[](#packagelocator)

The PackageLocator is a static class which is used to register the location of packages. This location is used by the compiler to find all configuration files. To register a package add a `files` node to the `autoload` node in the `composer.json` file.

```
{
    "autoload": {
        "files": ["locator.php"]
    }
}
```

Then create a `locator.php` file inside root of the package, with the following content:

```
