Sample code developed by me using Symfony 2.x version