Site icon Hip-Hop Website Design and Development

Dotenv file in custom plugin

I want to create some hidden settings that only a developer can change. For this purpose, I would like to have a .env file in my wordpress plugin. How do I read the settings from .env file in my plugin classes.

Is there any other way I can have hidden settings in my plugin?

Thanks