Download the PHP package gaw508/config without Composer
On this page you can find all versions of the php package gaw508/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gaw508/config
More information about gaw508/config
Files in gaw508/config
Download gaw508/config
More information about gaw508/config
Files in gaw508/config
Please rate this library. Is it a good library?
Informations about the package config
Config - PHP Application Config Library
A library to manage config key value pairs for PHP applications. Configuration can be loaded from YAML files.
Installation
The latest version can be installed with composer:
composer require gaw508/config
Basic Usage
<?php
require_once 'path/to/vendor/autoload.php';
use Gaw508\Config;
// Load a single YAML config file
Config::loadYaml('config/defaults.yml');
// Load a directory of YAML config files
Config::loadDirectory('config/autoload');
// Use a config value from YAML file
echo Config::get('some_val_from_loaded_file');
// Output: `foo bar`
// Set a single config value
Config::set('my_val', 12);All versions of config with dependencies
PHP Build Version
Package Version
The package gaw508/config contains the following files
Loading the files please wait ...