Symfony

Symfony is a set of reusable php components and a PHP framework for web projects.

How to create an Excel file with PHP in Symfony 4
Learn how to create an excel file using PHPSpreadSheet in Symfony 4.
How to install and configure FOSUserBundle in Symfony 4
Learn how to install and configure the widely known FOSUserBundle in Symfony 4 to create an user-role system.
How to disable the CSRF protection/verification for a Form in Symfony 1.4
Learn how to disable the CSRF protection of a form with a model in Symfony 1.4
How to report exceptions via email automatically in Symfony 3.4 using MonologBundle
Learn how to report automatically critical exceptions in your application via email using the MonologBundle.
How to retrieve the name of the current module in Symfony 1.4
Learn how to retrieve the name of the current module within an action or template in Symfony 1.4
How to redirect an user to a specific page according to his role in Symfony 2.8 using an EventListener
Learn how to implement a login listener that redirects an user automatically to a specific route according to his role.
How to get and display all the errors of an invalid form in Symfony 1.4
Learn how to retrieve all the errors of an invalid form in Symfony 1.4 easily
How to return a JSON response with Symfony 1.4
Learn how to return a JSON string as response from an action in Symfony 1.4
How to print safely a string variable from PHP in JavaScript with Symfony 1.4
Learn how to safely print a string from the PHP context to a JavaScript context.
Implementing a custom 500 error page for exceptions in Symfony 1.4
Learn how to implement a custom 500 error page for exceptions in the production environment in Symfony 1.4