Extending Symfony2 Web Application Framework

Symfony2 took the great features of the original framework to new levels of extensibility. With this practical guide you’ll learn how to make the most of Symfony2 through controlling your code and sharing it more widely.
Preview in Mapt

Extending Symfony2 Web Application Framework

Sébastien Armand

Symfony2 took the great features of the original framework to new levels of extensibility. With this practical guide you’ll learn how to make the most of Symfony2 through controlling your code and sharing it more widely.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $20.99
Save 52%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$34.99
$29.99 p/m after trial
RRP $20.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Extending Symfony2 Web Application Framework Book Cover
Extending Symfony2 Web Application Framework
$ 20.99
$ 10.00
Building Serverless Applications with Python Book Cover
Building Serverless Applications with Python
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $40.98
Add to Cart

Book Details

ISBN 139781783287192
Paperback140 pages

Book Description

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.

Table of Contents

Chapter 1: Services and Listeners
Services
Listeners
Summary
Chapter 2: Commands and Templates
Commands
Twig
Summary
Chapter 3: Forms
An input for geographical coordinates
Data transformers
Forms based on user data
Going further
Summary
Chapter 4: Security
Authentication
Authorization
Securing an API – an example
Summary
Chapter 5: Doctrine
Creating your own data types
Custom DQL functions
Versioning
Creating a Doctrine filter
Summary
Chapter 6: Sharing Your Extensions
Creating the bundle
Getting ready to share
Summary

What You Will Learn

  • 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

Authors

Table of Contents

Chapter 1: Services and Listeners
Services
Listeners
Summary
Chapter 2: Commands and Templates
Commands
Twig
Summary
Chapter 3: Forms
An input for geographical coordinates
Data transformers
Forms based on user data
Going further
Summary
Chapter 4: Security
Authentication
Authorization
Securing an API – an example
Summary
Chapter 5: Doctrine
Creating your own data types
Custom DQL functions
Versioning
Creating a Doctrine filter
Summary
Chapter 6: Sharing Your Extensions
Creating the bundle
Getting ready to share
Summary

Book Details

ISBN 139781783287192
Paperback140 pages
Read More

Read More Reviews

Recommended for You

Mastering Symfony Book Cover
Mastering Symfony
$ 31.99
$ 10.00
Symfony2 Essentials Book Cover
Symfony2 Essentials
$ 23.99
$ 10.00
PHP 7: Real World Application Development Book Cover
PHP 7: Real World Application Development
$ 69.99
$ 10.00
Mastering PHP Design Patterns Book Cover
Mastering PHP Design Patterns
$ 35.99
$ 10.00
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 10.00
Mastering jQuery Mobile Book Cover
Mastering jQuery Mobile
$ 39.99
$ 10.00