DEV Community


Discussion on: PHP - Create your own dotenv to loads environment variables from .env file

benhickson profile image
Ben Hickson

Ideally both ways? Sometimes I can, some projects I can't.

Thread Thread
fadymr profile image
F.R Michel Author

easy , if you use composer , create this class in your project and use it automaticly .
If you not use composer, create this class without namespace and include file class

Forem Open with the Forem app