Skip to content

LatitudeCartagene/simple-json-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Simple JSON config

$config = new Config('config.json');

$host   = $config->get("host");
$port   = $config->get("port");

// Nested keys
$env    = $config->get("environment.dev");

Autoload

Use composer PSR-4 autoload

$ composer dumpautoload

Then just require the autoloader

<?php

require_once('vendor/autoload.php');

About

SImply read a JSON configuration file in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages