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

Fatal error: Uncaught Error: Class "Dotenv\Dotenv" not found in #548

Closed rajrupdasofficial closed 1 year ago

rajrupdasofficial commented 1 year ago

Fatal error: Uncaught Error: Class "Dotenv\Dotenv" not found in projectdb.php Stack trace: #0 {main} thrown in

I was following github phpdotenv tutorial

I am using latest php and latest composer version available php 8.2.2 composer 2.5.3 on Arch linux

When the problem is expected to solve?

by the way I have tried clearing composer cache and try again? which was mentioned 2 years ago someone faced the issue

geoidesic commented 9 months ago

I have this same problem