I have one application that upload some files and then I can compress as zip file and download.
The export action:
public function exportAction() {
Since Symfony 3.2+ can use file helper to let file download in browser:
public function someAction() { // create zip file $zip = ...; $this->file($zip); }