CodeIgniter makes it simple to set Environment Variables by using a “dotenv” (.env) file. CodeIgniter expects .env to be at the root of your project beside the system and app directories.
There is an env file at the project root in CodeIgniter. You can use this file as a starting place for your application by renaming the template to .env or by making a copy of it named .env.
In the .env file, a collection of name/value pairs is separated by an equal sign.
CI_ENVIRONMENT = development