keiii / silex-yaml-config
YAML config service provider.
Installs: 2 406
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- keiii/yaml-config: ^0.2
- silex/silex: ^2.0
Requires (Dev)
- phpunit/phpunit: ^4.0|^5.0
This package is not auto-updated.
Last update: 2023-03-04 10:59:57 UTC
README
Provides symfony like config style for silex application.
Installation
composer require keiii/silex-yaml-config
Usage
<?php $app->register(new \KEIII\YamlConfigServiceProvider\YamlConfigServiceProvider(), [ 'config.path' => __DIR__.'/config', // 'config.cache_path' => '/var/tmp', // 'config.replacements' => ['root_path' => __DIR__], // 'config.env' => 'dev', // 'config.index' => 'config.yml', // 'config.loader' => LoaderInterface, ]); $app['config']['key']; // value;