Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.
/ SilexYamlConfig Public archive

Provides symfony like config style for silex application.

License

Notifications You must be signed in to change notification settings

KEIII/SilexYamlConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

Provides symfony like config style for silex application.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages