phpfit/env

Load .env file and put then on $_ENV global variable

Maintainers

Details

github.com/phpfit/env

Source

Issues

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/phpfit/env

1.0.0 2025-08-14 06:38 UTC

This package is auto-updated.

Last update: 2025-11-14 07:09:25 UTC


README

Load .env file and put them on global $_ENV and fetchable from getenv function. That's it.

Installation

composer require phpfit/env

Usage

<?php

use PhpFit\Env\Loader;

$env_file = BASEPATH . '/.env';
Loader::load($env_file);

Exceptions

PhpFit\Env\EnvFileNotFoundException

  1. 500001/.env File not found
  2. __construct(?Throwable $previous = null)

License

The phpfit/env library is licensed under the MIT license. See License File for more information.