phptoenv Convert PHP config file (with constants) to .env file Installation npm install -g @fedek6/phptoenv Usage This command will generate test.env from the standard Wordpress configuration file: phptoenv tests/test-files/wp-config.php test.env