Extending Symfony2 Web Application Framework

Extending Symfony2 Web Application Framework is published by Packt Publishing in March 2014. This book has 140 pages in English, ISBN-13 9781783287192.

Symfony is a high performance PHP framework for developing MVC web applications. Symfony1 allowed for ease of use but its shortcoming was the difficulty of extending it. However, this difficulty has now been eradicated by the more powerful and extensible Symfony2. Information on more advanced techniques for extending Symfony can be difficult to find, so you need one resource that contains the advanced features in a way you can understand.

This tutorial offers solutions to all your Symfony extension problems. You will get to grips with all the extension points that Symfony, Twig, and Doctrine offer and understand how each of them can be specifically leveraged to achieve cleaner, better structured, and re-usable code for your application.

Beginning with the core concepts of Services and Listeners, you quickly move on to learn the complexity of forms, creating commands, and implementing security, and finally you will share these extensions with others. This book will tell you everything you need to know to regain control of your code, to keep things simple, and share it within your application(s) or even the world. Whether you have already written extensions for Symfony2 or not, this book will be a useful guide through all possible types of extensions, and how each of them can be implemented and leveraged in your own applications.

What you will learn from this book

Make and review services and listeners

Integrate your extension with specific hooks

Create custom commands, templates, and database integration

Customize the security layer

Configure extensions to share with the community

Integrate to the same level as Symfony’s core modules

Approach

With lots of practical, hands-on, step-by-step examples, this book will lead you through how to extend and optimize your Symfony2 framework.

Who this book is for

If you have a good understanding of how Symfony works and are now trying to integrate complex tasks in your application, or want to better organize your application by keeping each piece of code where it belongs so it can be decoupled and easily used elsewhere, then this book is for you.