PHPackages                             activecollab/configfile - 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. activecollab/configfile

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

activecollab/configfile
=======================

Get constants from a configuration file written in PHP

1.0.1(10y ago)157.5k↓34%11MITPHP

Since Aug 9Pushed 10y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

ConfigFile Library
==================

[](#configfile-library)

[![Build Status](https://camo.githubusercontent.com/f0d988d8ef0cef984a684ea1ff1398ea9568b21fd9e1c092eda01bb19c1eb64f/68747470733a2f2f7472617669732d63692e6f72672f616374697665636f6c6c61622f636f6e66696766696c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/activecollab/configfile)

Simple utility for getting constants from configuration files written in PHP.

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

[](#installation)

To install it, use Composer:

```
{
    "require": {
        "activecollab/configfile": "~1.0"
    }
}
```

Usage
-----

[](#usage)

If we have a `config.example.php` file that looks like this:

```
