Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Symfony 4 Run-through

Symfony 4 Run-through

Symfony is a framework broadly recognized for its quality, reliability and ability to drive large enterprise projects. But for the last few years, Symfony has also gained many features to develop faster, and to refactor more easily. Symfony 4 offers major improvements in this area that will deeply change the way we build applications.

Let's talk about:

* Symfony 4 main concepts and new features: micro-framework by default, 12-factor app, new components ...
* Flex, the new and powerful Symfony installer that can also automatically install and configure libraries and bundles
* Symfony 4's new simplified (and "bundle-less") directory structure
* The autowiring (now enabled by default), which allows the automatic injection of dependencies without having to write any configuration (no more YAML and XML)
* The revamped controllers mechanism
* Webpack Encore, the first Symfony component ever written in JavaScript, designed to easily integrate JavaScript and CSS tools in a PHP project
* The official integrations of the Doctrine (ORM), API Platform (API) and EasyAdmin libraries (admin generator)
* How to easily use Symfony 4 with Docker from dev to cloud deployment with a dedicated skeleton

You'll learn how to leverage Symfony for large projects, prototypes, small applications and even your "weekend projects", and how to migrate from smallest to the largest.

Kévin Dunglas

October 26, 2017
Tweet

More Decks by Kévin Dunglas

Other Decks in Programming

Transcript

  1. Les-Tilleuls.coop Install Symfony 4 composer create-project \ -s beta \

    # Default to Symfony 3 otherwise symfony/skeleton factory.football
  2. Les-Tilleuls.coop Much more to say! ❏ ❏ ❏ ❏ ➡

    ❏ App\Foo: {$arg: hello} ❏ ❏
  3. Les-Tilleuls.coop So you want an admin? composer req admin #

    Install EasyAdminBundle, by @javiereguiluz
  4. Les-Tilleuls.coop What about an hypermedia API? composer req api #

    Install API Platform, by your humble servant