PHP Package: vlucas/phpdotenv

An SEO-optimized PHP library for loading environment variables from .env files into getenv, $_ENV, and $_SERVER automagically.

Current Version: 5.6.1
Last Updated: 2024-07-20
PHP Requirement: ^7.2.5 || ^8.0
Dependencies:
symfony/dotenv
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHP dotenv loads environment variables from .env to getenv(), $_ENV, and $_SERVER automagically. PHP dotenv is a popular library that simplifies the process of handling environment variables in PHP applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 5.6.2

Clock Coming soon

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/vlucas/phpdotenv/5.6.2/loader.php';
require_once 'libs/symfony/dotenv/7.3.0/loader.php';

use Dotenv\Dotenv;

$obj = new Dotenv();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.