No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Tests
src
.gitignore
.travis.yml
README.md
composer.json

README.md

Gephart Configuration

Build Status

Dependencies

  • PHP >= 7.1

Instalation

composer require gephart/configuration

Basic using

/config/my.json

/index.php

$configuration = new \Gephart\Configuration\Configuration();
$configuration->setDirectory(__DIR__ . "/config");
$my_configuration = $configuration->get("my");
// Array data from my.json

Usign with gephart/dependency-injection

$container = new \Gephart\DependencyInjection\Container();
$configuration = $container->get(\Gephart\Configuration\Configuration::class);
$configuration->setDirectory(__DIR__ . "/config");
// Next code (routing etc...)