Skip to content

A light-weight package for PHP that loads environment variables (such as database credentials) from a JSON-encoded source.

Notifications You must be signed in to change notification settings

bluesheep100/php-jsonenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Composer

composer require bluesheep/php-jsonenv

Usage

A simple example:

<?php

use JsonEnv/JsonEnv;

$env = new JsonEnv(__DIR__ . '/env.json');
$env->load();

Notes

  • The default filename is env.json. It is recommended to override this with an absolute path.

About

A light-weight package for PHP that loads environment variables (such as database credentials) from a JSON-encoded source.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages