Loads environment variables from .env to getenv().
vlucas/phpdotenv converted for Hack
require HHVM >=4.20
$ hhvm $(which composer) require ytake/hackdotenv
Your application configuration to a .env file in the root of your project.
FOO=bar
BAR=baz
You can then load .env in your application.
use type Ytake\Dotenv\Loader;
$dotenv = new Dotenv($this->dir);
await $dotenv->loadAsync();
use namespace Ytake\Dotenv;
Dot\env('FOO');