Silex, not Symfony, and better to rely on trusted library code than to reinvent the wheel and introduce vulnerabilities...