Conditional Routing in Symfony using ENV Vars

Posted on Sunday February 23, 2020 • Read time 5 minutes

I recently wanted to be able to control whether a route was available based on an environment variable, in dev I wanted it available, but in production I wanted it turned off (for now). I like using feature flags and environment variables to toggle things on and off, and thought I'd write up how I did it here.

Symfony and Dokku

Posted on Tuesday March 28, 2017

Recently I've been using Dokku to deploy some of my side-projects, I wanted a simple deployment procedure that didn't rely on complicated build systems, as these were just small apps that I needed to host somewhere easily. I'm using Dokku for that - so here's some instructions for getting Symfony working with it.

Built with Tailwind CSS using Hugo hosted on Netlify
© 2021 Matt Brunt