Have a personal or library account? Click to login
Symfony2 Essentials Cover

Symfony2 Essentials

Symfony2 Essentials

Paid access
|Sep 2025
Product purchase options

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

Key Features

    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.

    What you will learn

      Who this book is for

      This book is aimed at experienced programmers, especially those familiar with a closely related technology such as Yii or Laravel, but who now want to learn Symfony quickly.

      Table of Contents

      1. The Symfony Framework - Installation and configuration
      2. Creating first pages
      3. Twig templating, assets handling, integrating fronted libraries
      4. Forms
      5. Security and handling users
      6. Translations
      7. AJAX
      8. Creating commands, sending emails, logging information using Monolog
      9. Profiler
      10. Preparing for production, deployment strategies
      PDF ISBN: 978-1-78439-593-3
      Publisher: Packt Publishing Limited
      Copyright owner: © 2015 Packt Publishing Limited
      Publication date: 2025
      Language: English
      Pages: 158