Andrew McCombe


Full Stack Web Developer

Forcing a file to download using the Silex PHP framework

I’ve just been searching for a way to force a file to download using the Silex PHP framework and didn’t find any examples. After reading through the Silex code I worked it out. Here’s how to force a file to download using Silex: $app->match(‘/export’, function() use($app) { /** * create the file and save to […]