Symfony2 Essentials

A fast-paced developer's guide to using Symfony2 to make your everyday web development work more efficient
Preview in Mapt

Symfony2 Essentials

Wojciech Bancer

1 customer reviews
A fast-paced developer's guide to using Symfony2 to make your everyday web development work more efficient
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.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
$16.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Symfony2 Essentials Book Cover
Symfony2 Essentials
$ 23.99
$ 16.80
Extending Symfony2 Web Application Framework Book Cover
Extending Symfony2 Web Application Framework
$ 20.99
$ 14.70
Buy 2 for $31.50
Save $13.48
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781784398767
Paperback158 pages

Book Description

Symfony is a free and open source PHP MVC web application development framework, which helps you create and maintain web applications and replace recurrent coding tasks. It integrates with an independent library, PHPUnit, to give you a rich testing framework. It is one of the best and most popular frameworks available on the market. Popular projects such as Drupal, Laravel, and phpBB also use Symfony. Its well-organized structure, clean code, and good programming practices make web development a breeze.

Symfony2 Essentials will guide you through the process of creating a sample web application with Symfony2. You will create a To-Do application, using a few of the most commonly used Symfony2 components, and discover how to perform these development tasks efficiently.

This book introduces you to the Symfony framework with a quick installation guide and a brief explanation of its key features including the MVC architecture, twig templating, dependency injection, and more. You will learn to manage dependencies, create controllers, views, and API calls, and secure your application.

Next, you will go through the steps that are common for most web applications, which include writing CRUD and AJAX, handling forms, validation, translations, and the command-line interface, and e-mail sending features. The book ends with best practices, debugging, profiling, and deployment procedures.

By the end of this book, you will have learned how to combine a Symfony2 framework with other open source code to speed up the development process.

Table of Contents

Chapter 1: The Symfony Framework – Installation and Configuration
Key reasons to choose Symfony2
The history of Symfony
Installation
Installing Symfony2 using an installer
The Symfony2 directory structure
The configuration files
The Symfony2 console
Summary
Chapter 2: Your First Pages
Everything is a bundle
The configuration format
Cleanups
Routing
Templates – the View layer
Entities – the Model layer
Migrations
Fixtures
Summary
Chapter 3: Twig Templating and Assets Handling
The Twig templating engine
Creating a list of tasks
Summary
Chapter 4: Forms
Form creation
Validation and form processing
Theming form elements
Transforming data
Summary
Chapter 5: Security and Handling Users
Security handling
Installing the user manager bundle
User registration
Summary
Chapter 6: Translation
Translations
Summary
Chapter 7: AJAX
Installing and configuring REST features
Summary
Chapter 8: Command-line Operations
Creating the console command
Swiftmailer
Logging
Summary
Chapter 9: Symfony2 Profiler and Debugger
The Web Debug Toolbar
The Symfony2 profiler
Data collectors
The stopwatch component
Summary
Chapter 10: Preparing an Application for Production
Preparing an application
Deployment strategies
Summary

What You Will Learn

  • Familiarise yourself with the Symfony framework, its latest features, and how to install it
  • Discover the concept of bundles and their application
  • Handle translations within Symfony, enable translations, and learn how to handle database translations
  • Understand Symfony's security model, how to secure applications, and implement a custom authentication provider by using FOSUserBundle
  • Explore the use of Twig, find best practices around its usage, and discover its common pitfalls
  • Create internal commands that will handle sending e-mail reminders for your app
  • Develop a plugin for the profiler to provide custom information about your application
  • Deploy applications based on Symfony2 using various methods including simple FTP copying, rsync, CI deployment, and more

Authors

Table of Contents

Chapter 1: The Symfony Framework – Installation and Configuration
Key reasons to choose Symfony2
The history of Symfony
Installation
Installing Symfony2 using an installer
The Symfony2 directory structure
The configuration files
The Symfony2 console
Summary
Chapter 2: Your First Pages
Everything is a bundle
The configuration format
Cleanups
Routing
Templates – the View layer
Entities – the Model layer
Migrations
Fixtures
Summary
Chapter 3: Twig Templating and Assets Handling
The Twig templating engine
Creating a list of tasks
Summary
Chapter 4: Forms
Form creation
Validation and form processing
Theming form elements
Transforming data
Summary
Chapter 5: Security and Handling Users
Security handling
Installing the user manager bundle
User registration
Summary
Chapter 6: Translation
Translations
Summary
Chapter 7: AJAX
Installing and configuring REST features
Summary
Chapter 8: Command-line Operations
Creating the console command
Swiftmailer
Logging
Summary
Chapter 9: Symfony2 Profiler and Debugger
The Web Debug Toolbar
The Symfony2 profiler
Data collectors
The stopwatch component
Summary
Chapter 10: Preparing an Application for Production
Preparing an application
Deployment strategies
Summary

Book Details

ISBN 139781784398767
Paperback158 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Symfony Book Cover
Mastering Symfony
$ 31.99
$ 22.40
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
React.js Essentials Book Cover
React.js Essentials
$ 23.99
$ 16.80
Drupal 8 Theming with Twig Book Cover
Drupal 8 Theming with Twig
$ 35.99
$ 25.20
Git Version Control Cookbook Book Cover
Git Version Control Cookbook
$ 26.99
$ 18.90
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80