Migrate vlucas/phpdotenv to TypeScript

D Converted · version 5.7.0

vlucas/phpdotenv 5.7.0 is a PHP package released under the BSD-3-Clause license and requires PHP ^7.2.5 || ^8.0. Pext migrates it to TypeScript; its PHPUnit suite has not been run against the TypeScript output yet. It depends on 5 tracked packages (weakest tier: Converted), and 9 tracked packages depend on it.

Loads environment variables from `.env` to `$_ENV` and `$_SERVER` automagically, and optionally to `getenv()`.

ConvertsYes
Runs on Node.jsNot yet run
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

The original PHPUnit suite has not been run against the TypeScript output yet. This page will update once it has.

What “Converted” means

Converts cleanly to TypeScript. Test verification is pending or still climbing.

Requirements

PHP
^7.2.5 || ^8.0
Extensions
pcre

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

Weakest dependency: D Converted

Used by

Upstream

Version
5.7.0
License
BSD-3-Clause
Keywords
env, dotenv, environment

Migrating a codebase that uses vlucas/phpdotenv?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.