PHPackages                             truecastdesign/config - 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. [Framework](/categories/framework)
4. /
5. truecastdesign/config

ActiveLibrary[Framework](/categories/framework)

truecastdesign/config
=====================

An ini config loader class for easy configuration loading and access.

v1.1.2(8y ago)015MITPHPPHP &gt;=5.5.0

Since Dec 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/truecastdesign/config)[ Packagist](https://packagist.org/packages/truecastdesign/config)[ RSS](/packages/truecastdesign-config/feed)WikiDiscussions master Synced 3d ago

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

Config - .ini config file manager for PHP
=========================================

[](#config---ini-config-file-manager-for-php)

This library provides the ability to create, read/load into memory, and write configuration files in the .ini format.

Install
-------

[](#install)

To install with composer:

```
composer require truecastdesign/config
```

Requires PHP 5.5 or newer.

Usage
-----

[](#usage)

Here's a basic usage example:

Create config file in the format:

```
; MySQL database config

config_title = 'mysql'
type = 'mysql'
hostname = 'localhost'
username = 'root'
password  = 'password'
database  = 'dbname'
port = 3306
persistent = true
emulate_prepares = false
compress = true
charset = 'utf8'
buffer = true
```

```
