ebidtech / config-loader
Symfony 2 config component extra loaders
Installs: 137 390
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 14
Forks: 1
Open Issues: 0
Requires
- php: ~5.4
- symfony/config: ~2.2
- symfony/yaml: ~2.2
Requires (Dev)
- mikey179/vfsstream: ~1.2
- phpmd/phpmd: ~1.5
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~1.5
README
Symfony 2 config component extra loaders.
Requirements
- PHP >= 5.4
Installation
The recommended way to install is through composer.
Just create a composer.json
file for your project:
{ "require": { "ebidtech/config-loader": "@stable" } }
Tip: browse ebidtech/config-loader
page to choose a stable version to use, avoid the @stable
meta constraint.
And run these two commands to install it:
$ curl -sS https://getcomposer.org/installer | php
$ composer install
Now you can add the autoloader, and you will have access to the library:
<?php require 'vendor/autoload.php';
Usage
You should read about Symfony 2 config component.
Example of simple use:
use EBT\ConfigLoader\YamlFileLoader; $yamlLoader = new YamlFileLoader(); // this will read the file and return it as array $content = $yamlLoader->load(__DIR__ . '/test.yml');
Contributing
See CONTRIBUTING file.
Credits
- Ebidtech developer team, config loader Lead developer Eduardo Oliveira (eduardo.oliveira@ebidtech.com).
- All contributors
License
Config loader library is released under the MIT License. See the bundled LICENSE file for details.