Registry / config / m1-env

m1-env

JSON →
library2.2.0phppackagistunverified

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

composer require m1/env
INSTALL
IMPORT
SIG · M1-ENV
M
m1-env
configphpv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parser
use M1\Env\Parser;

Parse a .env file and retrieve its contents

use M1\Env\Parser; $env = new Parser('.env'); $values = $env->getContent();
Debug
Known issues
gotchaThe library may not handle all edge cases of .env syntax (e.g., multiline values).
fix
Use a more robust parser like vlucas/phpdotenv for complex .env files.
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
Amazon
1
Resources
m1-env — pip install m1-env · libregistry