Joyful Development with Symfony 3

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Alternate resources

Drupalize.Me is excited to present this series of screencasts to get you up and running with Symfony 3 with these video tutorials from our friends at SymfonyCasts (formerly KnpUniversity).

Get your first application off on the right foot by coding along with a real application, using the right tools, and learning the best practices from the lead author of the Symfony documentation. These fundamentals will get you ready for everything else you'll need to do with Symfony in the future.

In this series, we start building an application from the ground up, exploring the most fundamental parts of the application:

  • Installation and Setup
  • Route Essentials
  • Mastering Controllers and Response
  • Services and the Container
  • Twig
  • JSON Responses
  • Configuration and Environments
  • ...and other tips and tricks!
Tutorials in this course
More information

In this lesson, you will learn how to get a Symfony 3 project started. First download Symfony and then follow along with this video tutorial.

Additional resources

Download Symfony

More information

Learn how to set up the IDE PhpStorm for Symfony 3 development. In this lesson, you'll install the Symfony plugin. You'll also want to install the PHP Annotations plugin in the same manner. Finally, you'll initialize a new Git repository on your system.

Additional resources

PhpStorm IDE
Introduction to Git

More information

In this lesson you'll build your first page in Symfony 3. Be sure to download the code below so that you can follow along.

Tip: You should also find and install the PHP Annotations plugin. That will give you the awesome annotations auto-completion that you'll see in the video.

Additional resources

PHP Namespaces in 120 Seconds
PHP Namespaces Support in PhpStorm
PHP Annotations plugin for PhpStorm

More information

In this lesson, learn how to make use of routing wildcards in a Symfony 3 app.

Additional resources

Be careful when rendering direct user input (like we show here)! It introduces a security issue called XSS. Read more about XSS here

More information

In this lesson, learn how to use services and other useful objects like the service container in Symfony 3.

More information

In this lesson, you'll learn how to find services you might want to use in the container by listing them.

More information

In this lesson, you'll get a crash course in Twig. Covered here are the "say something" syntax, the "do something" syntax and for loops. For broader coverage of Twig and the amazing things you can do with it, head over to the Twig Templating series.

Additional resources

Twig Templating

More information

In this lesson, you'll learn how to dress up the plain HTML that's being output in your Symfony app with a template layout using Twig's template inheritance feature. You'll learn how to use both block and extends Twig keywords to create, use, and re-use HTML layouts in your app. To explore more features in Twig, head over to the Twig Templating series.

Additional resources

Twig Templating series

More information

In this lesson, you'll learn how to bring in CSS and JavaScript assets for use in the templates of your Symfony 3 app.

More information

In this lesson, you'll learn how you can use Symfony 3 to create first-class APIs. We'll cover how to create endpoints, JSON controllers, and more.

More information

In this lesson, you'll learn how to generate URLs in Symfony 3 and use Twig's path() function to output HTML links based on the name of the route.

Additional resources

Twig Templating series

More information

In this lesson, you'll learn how to integrate ReactJS into the Twig templates of your Symfony 3 app. You will learn how to include page-specific JavaScript assets, include the ReactJS code, direct ReactJS to use the API you've built in your Symfony app, and generate URLs for dynamic JavaScript assets. With this lesson complete, you will have completed building a rich HTML page and an API endpoint to fuel some sweet JavaScript using Symfony 3.

Ready for more Symfony 3? Check out Symfony 3 Fundamentals: Bundles, Configuration and Environments next!

Additional resources

ReactJS