It seems the following code at https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/php/server/config.php#L14 to get env is not working any more, need to update with latest change.
// load the environment variable from .env into your application
$dotenv = Dotenv::create(DIR);
$dotenv->load();
$forge_id = getenv('FORGE_CLIENT_ID');
It seems the following code at https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/php/server/config.php#L14 to get env is not working any more, need to update with latest change.
// load the environment variable from .env into your application
$dotenv = Dotenv::create(DIR);
$dotenv->load();
$forge_id = getenv('FORGE_CLIENT_ID');