I’m getting in the habit of using a .env file for loading environment variables. Laravel already uses them for setting up configuration. It’s a nice way to setup variables that can be used in bash or through a php library like vlucas/phpdotenv. For a site I’m working on I wanted the environment variable APP_ENV set to “local” in… Continue reading .env environment variables when working with Apache
Tag: Composer
Installing WordPress Plugins with Composer
I found out a cool usage for composer that I didn’t know about; use it for installing WordPress plugins. I use Phing to do all my deployments (slowly moving towards continuous integration with Jenkins). I wanted a way to get the plugin files and include them with my deployment automagicly. Composer can download and extracting the plugin archive file rather than using… Continue reading Installing WordPress Plugins with Composer