latitude-cartagene/simple-json-config

There is no license information available for the latest version (v0.0.2) of this package.

Simple JSON config loader in PHP

v0.0.2 2015-09-29 14:39 UTC

This package is not auto-updated.

Last update: 2025-06-14 04:36:37 UTC


README

$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');