Symfony 4 (Flex included)

1a4e1f98f3aeef310273366c8c785207?s=47 Jakub Zalas
February 22, 2018

Symfony 4 (Flex included)

Symfony 4 is the next evolution of your favourite framework. While it's not a revolution, there's lots of things included that will make your life much easier and more fun!

Symfony was moved closer to industry practices with application bundles gone, simplified directory structure, or environment variables preferred over configuration parameters. Both version 2 and 3 has already introduced some nice features, like autowiring, that contributed to what Symfony 4 has become. As a result there is less Symfony specific concepts and more standard practices. It's easier to learn, easier to configure, easier to install and deploy, and finally easier to master. If that wasn't enough, our workflow was much improved with the introduction of Symfony Flex, a new way to install and manage Symfony applications. It's time to say goodbye to both Symfony installer and the Standard Edition!

1a4e1f98f3aeef310273366c8c785207?s=128

Jakub Zalas

February 22, 2018
Tweet

Transcript

  1. Symfony 4 (Flex included) Symfony UK London Meetup Jakub Zalas

    @jakub_zalas 22 Feb 2018
  2. Symfony 4 != Symfony Flex

  3. Symfony 4 != Symfony Flex

  4. What is Symfony 4? Symfony 4.0 = (Symfony 3.4 -

    deprecated features - long term support - PHP 5 support) + Flex by default Symfony 3.4 = (Symfony 3.3 + new features + new deprecations) Symfony 3.3 = …
  5. What is Symfony Flex? Symfony Flex helps developers create Symfony

    applications, from the most simple micro-style projects to the more complex ones with dozens of dependencies. Composer plugin for Symfony https://github.com/symfony/flex
  6. Creating a new project https://flic.kr/p/FERV6

  7. Symfony 2.0

  8. Symfony 2.1 Option 1 Option 2

  9. Symfony 2.3

  10. Symfony 3.3

  11. Symfony 4.0

  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. Project structure https://flic.kr/p/RCunfT

  19. Symfony Standard Edition 3.4 Symfony 4.0

  20. None
  21. None
  22. None
  23. None
  24. None
  25. Size matters? Version Package Disk Files Lines of code #

    of deps 4.0 symfonny/skeleton 14M 2.5k 195k 21 3.4 symfony/framework-standard- edition 58M 8.9k 682k 38 + 50
  26. Size matters? Version Package Disk Files Lines of code #

    of deps 4.0 symfonny/skeleton 14M 2.5k 195k 21 symfony/website-skeleton 62M 9.7k 720k 88 symfony/framework-standard- edition — — — - 3.4 symfonny/skeleton 15M 2.8k 212k 23 symfony/website-skeleton 64M 10k 748k 89 symfony/framework-standard- edition 58M 8.9k 682k 38 + 50
  27. https://speakerdeck.com/fabpot/flex

  28. https://speakerdeck.com/fabpot/flex

  29. Understanding Symfony Flex https://flic.kr/p/GKSNas

  30. None
  31. None
  32. None
  33. Composer symfony.sh (Symfony Flex server) Symfony Flex packagist.org

  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. None
  41. None
  42. Using contrib recipes

  43. Working with Symfony 4 https://flic.kr/p/GKSNas

  44. None
  45. None
  46. None
  47. None
  48. None
  49. None
  50. Since 3.3

  51. Since 3.3

  52. None
  53. None
  54. None
  55. None
  56. None
  57. None
  58. None
  59. None
  60. None
  61. None
  62. None
  63. None
  64. None
  65. None
  66. There’s more

  67. Helping the service container

  68. Parameter binding Since 3.4

  69. Service argument binding Since 3.4

  70. Autoconfiguration Since 3.3

  71. Autoconfiguration Since 3.3

  72. Autowiring debug Since 3.4

  73. Runtime environment variables Since 3.2 SYMFONY__* style environment variables were

    deprecated in Symfony 3.3 and removed in Symfony 4.0
  74. Runtime environment variables Since 3.4

  75. Recreating the Standard Edition

  76. Frontend tools integration Since 3.3

  77. Rapid application development Since 3.4

  78. There’s more to come… http://symfony.com/blog/category/living-on-the-edge

  79. @jakub_zalas @jakzal Thank you. Contact me: jakub@zalas.pl