title: Fatal error: Uncaught Error: Call to undefined function Dotenv\Dotenv()
body: <p>I am trying to build a website to practice a code where. I am finding a strange error</p>
  <p><a href="https://i.stack.imgur.com/M5vOs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M5vOs.png" alt="errpr" /></a></p>
  <p>Which I am unable to replicate how to solve the issue.</p>
  <p>I have followed the steps.</p>
  <p>I already downloaded the Vendor by Composer and here is the code I have used. Then I installed last pacjage.</p>
  <blockquote>
  <p>composer require vlucas/phpdotenv</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/3CEuc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3CEuc.png" alt="folders" /></a></p>
  <p>.env</p>
  <pre><code>APP_URL=http://oxbir.me
  APP_ENV=local
  APP_NAME=&quot;ACSE E-Commerce Store&quot;
  </code></pre>
  <p>index.php</p>
  <pre><code>&lt;?php
  require_once __DIR__.'/../bootstrap/init.php';
  $app_name = getenv('APP_NAME');
  echo $app_name;
  </code></pre>
  <p>init.php</p>
  <pre><code>&lt;?php
  require_once __DIR__.'/../app/config/_env.php';
  </code></pre>
  <p>_env.php</p>
  <pre><code>&lt;?php
  define('BASE_PATH', realpath(__DIR__.'/../../'));
  require_once __DIR__.'/../../vendor/autoload.php';
  $dotEnv = Dotenv\Dotenv(BASE_PATH);
  $dotEnv-&gt;load();
  </code></pre>