vlucas / phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
BSD 3-Clause "New" or "Revised" License
13.15k stars 626 forks source link

Allow unicode variable names #540

Closed thorerik closed 2 years ago

thorerik commented 2 years ago

This PR should allow Unicode variable names in .env files to match how eg. Python-dotenv does it.

The main purpose is to allow internationalized environment variablenames as #519 asked about.

Though a niche use-case, many government contracts require certain things to be in the country's primary language(s), hence this PR would permit those projects to utilize phpdotenv.