PHPackages                             jackchang1025-clagiordano/weblibs-configmanager - 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. jackchang1025-clagiordano/weblibs-configmanager

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

jackchang1025-clagiordano/weblibs-configmanager
===============================================

weblibs-configmanager is a tool library for easily read and access to php config array file and direct read/write configuration file / object

2.0(3y ago)015LGPL-3.0-or-laterPHPPHP &gt;=5.4

Since Dec 5Pushed 3y agoCompare

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

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

[![PHP Composer](https://github.com/clagiordano/weblibs-configmanager/actions/workflows/php.yml/badge.svg)](https://github.com/clagiordano/weblibs-configmanager/actions/workflows/php.yml)[![Coverage Status](https://camo.githubusercontent.com/443ceec9ac987d00936c9684e2137c8b50df1ee164a4eb193ad9408fe0402d29/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636c6167696f7264616e6f2f7765626c6962732d636f6e6669676d616e616765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/clagiordano/weblibs-configmanager?branch=master)[![SymfonyInsight](https://camo.githubusercontent.com/c4aabdcc970d07af043bdac771028db4d0a2784d4f77098e11cca0e91496b668/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f35346334653830632d666631352d343233352d386265632d6134633731626265336261352f6d696e692e737667)](https://insight.symfony.com/projects/54c4e80c-ff15-4235-8bec-a4c71bbe3ba5)

weblibs-configmanager
=====================

[](#weblibs-configmanager)

weblibs-configmanager is a tool library for easily read and access to php config array file and direct read/write configuration file / object.

Why use weblibs-configmanager ?
-------------------------------

[](#why-use-weblibs-configmanager-)

The purpose of this project is to propose a simple and lightweight library to manage php hierarchical configuration files.

Supported formats
-----------------

[](#supported-formats)

This package supports config files in the following format:

FormatComponentSince versionDescriptionArray`ConfigManager``v0.1.0`Deprecated, legacy name for the php array reader, only for compatibility supportArray`ArrayConfigManager``v1.2.0`A file that returns a php array, the original supported formatYaml`YamlConfigManager``v1.3.0`A file containing a valid YAML fileJSON`JsonConfigManager``v1.4.0`A file containing a valid JSON fileAll the supported format are parsed and internally handled in the same way granting the same functionalities.

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

[](#installation)

The recommended way to install weblibs-configmanager is through [Composer](https://getcomposer.org).

```
composer require clagiordano/weblibs-configmanager
```

Usage examples (Array format)
-----------------------------

[](#usage-examples-array-format)

### Write a sample config file like this

[](#write-a-sample-config-file-like-this)

```
