Symfony Station Communique - 12 November 2021. A Look at Symfony and PHP News.
Tags: symfony, php, docker, github
Published: 2021-11-12 13:15:30

This post originally appeared on [Symfony Station] (https://symfonystation.com/Communiques). Vist the link to see past communiques and sign up to receive future ones (a day early) directly in your inbox.

 
Welcome to this week's Symfony Station Communique. It’s your weekly review of the most valuable and essential news in the Symfony and PHP development communities. This week it’s pretty extensive, so take your time and peruse it for the most valuable items.
 
Thanks to Javier Eguiluz and Symfony for sharing [our last communique](https://symfonystation.com/Symfony-Station-Communique-5-November-2021) in their [Week of Symfony](https://symfony.com/blog/a-week-of-symfony-775-1-7-november-2021).

 
Please note all links will open in a new browser window. **My opinions, if I present any, will be in bold.**

![Symfony Logo](https://symfonystation.com/sites/default/files/inline-images/symfony-logo-no-text.png)

##Symfony

###This week

As always, we will start with the official news from Symfony.

Highlight -> “This week, Symfony 5.4.0-BETA1 and 6.0.0-BETA1 versions were published in preparation for their final release at the end of November 2021. We also published the first articles about the new features of Symfony 5.4. Lastly, we announced more speakers for the SymfonyWorld Online 2021 Winter Edition conference (December 9-10, 2021). ”

[A Week of Symfony #775 (1-7 November 2021)](https://symfony.com/blog/a-week-of-symfony-775-1-7-november-2021)


Javier has a series of posts on what’s new in Symfony 5.4.

[New in Symfony 5.4: Nested Validation Attributes](https://symfony.com/blog/new-in-symfony-5-4-nested-validation-attributes)

[New in Symfony 5.4: Controller Changes](https://symfony.com/blog/new-in-symfony-5-4-controller-changes)

[New in Symfony 5.4: Route Aliasing]
(https://symfony.com/blog/new-in-symfony-5-4-route-aliasing)

[New in Symfony 5.4: PHP Enumerations Support]
(https://symfony.com/blog/new-in-symfony-5-4-php-enumerations-support)


Would you like to put your brand ahead of the Symfony community? Make your Corporate social responsibility (CSR) policy a reality? The Fast-Track book for version 6 and SymfonyWorld Online conference next month are still open for sponsorship!

But in this blog post, Nicolas Grekas makes a specific call to SaaS providers for whom Symfony has a bridge (aka plugins).

[Calling SaaS providers to back their Symfony bridge](https://symfony.com/blog/calling-saas-providers-to-back-their-symfony-bridge)

SensioLabs, the company behind Symfony, has some great resources for getting the best out of your projects.

[Read / Watch / Download / Enjoy our free resources](https://sensiolabs.com/en/ressources/white_papers.html)


##Featured Item

**We continue to highlight the most significant post of the week.**

Makeoverarena says: “Although there are many PHP frameworks, Laravel and Symfony are the most popular. Hence, there has been a constant rivalry between both. Especially on which one to choose in the coming year (2022). So, if you are in the dark about the one to choose, it isn’t hard. Just pay attention to this article as its main purpose is to explain the best out of both.”

[Laravel Vs. Symfony – Which PHP Framework to Choose in 2022?](https://www.makeoverarena.com/laravel-vs-symfony-which-php-framework-to-choose-in-2022/)


Here is another comparison.

[How Laravel Differs From Symfony?](https://morioh.com/p/b936f5f38157)


Via SymfonyCasts: “If your app checks passwords, implementing the new PasswordAuthenticatedUserInterface is for you! How do you *check* if the submitted password is valid from inside an authenticator? You don't! Instead, you attach the new PasswordCredentials object to your Passport... and let Symfony do the heavy lifting for you!” 

[This week on SymfonyCasts](https://5hy9x.r.ag.d.sendibm3.com/mk/mr/-PJZNPeWCm8RwxpAyC1VwkDA5Ci84SNwNbXKUrgjSvME-zdsj1rIDTa8HnPRkZSqn60EYCf_bdSkyGjRZ-XgsMmrWyfv5xi-434pkDhNhLX1i4TaR5MWBa9u1yUd_fwzv1bZawexaQ)
 
Wouter Carabain, who provides some helpful info on his new blog, continues a new series of posts looking at pairing Symfony with API Platform. Here’s the third one and a follow-up of the articles we shared in earlier communiques.

[How to create a simple application using Symfony and React Native – Part 3](https://woutercarabain.com/webdevelopment/how-to-create-a-simple-application-using-symfony-and-react-native-part-3/)


Anders Björkland has a second article on Bolt CMS. The previous one dealt with content creation and editing. This one looks at how to implement a design for it. 

[Bolt CMS for designers](https://dev.to/andersbjorkland/bolt-cms-for-designers-1cmk)
 
Drupal users, Drupal needs your input. The decision was made to create a "test" branch with Symfony 5.4. The question now is how are they going to do that. A couple of choices must be made. Tell them what you think!

[POLICY] [Release Symfony 5.4 with which Drupal branch and how much support will it get?](https://www.drupal.org/project/drupal/issues/3248106)


On a similar note Drupal 10’s rollout is dictated by Symfony 6’s.

[What To Expect from Drupal 10, and How to Deal With Drupal 8’s End of Life](https://imagexmedia.com/blog/2021/11/what-expect-drupal-10-and-how-deal-drupal-8s-end-life/?utm_source=drupal-newsletter&utm_medium=email&utm_campaign=drupal-newsletter-20211111)


The API Platform Conference made their presentations available for replay. Several caught my eye.

In French. [Why Symfony and PHP are still in the game for any project.](https://www.youtube.com/watch?v=aB6lKL_SvYQ)

[A suitable serialization with API Platform and Symfony](https://www.youtube.com/watch?v=mYwL8snWvTs)


In English. [Sylius and API Platform: the story of integration](https://www.youtube.com/watch?v=5f2qoBH7tl8)

[Symfony Runtime: wrapping API Platform in a lambda](https://www.youtube.com/watch?v=vXk2Z1dy_gA)



In this post, Mickaël Andrieu asks how to control the quality of your PHP and Symfony projects? In French.

[Comment contrôler la qualité de vos projets PHP & Symfony?](https://mickael-andrieu.medium.com/comment-contr%C3%B4ler-la-qualit%C3%A9-de-vos-projets-php-symfony-d30f791cf1ca)

He also posted this one.

[Contrôler la qualité de vos projets PHP & Symfony avec PHP-CS-Fixer](https://mickael-andrieu.medium.com/contr%C3%B4ler-la-qualit%C3%A9-de-vos-projets-php-symfony-avec-php-cs-fixer-a926bb34066f)

And Mickaël finishes with the series with this one.

[Contrôler la qualité de vos projets PHP & Symfony à l’aide des hooks Git](
https://mickael-andrieu.medium.com/contr%C3%B4ler-la-qualit%C3%A9-de-vos-projets-php-symfony-%C3%A0-laide-des-hooks-git-b49ff0779889)



This article is from an unlikely source and, despite its title, is more about the history and advantages of SensioLabs and Symfony. But it’s still interesting.

[Migrating from Legacy to Symfony? SensioLabs explains it all!](https://urbanlinker.com/en/blog/10-feature-articles/migrating-from-legacy-to-symfony-sensiolabs-explains-it-all)


Romain writes Github Actions will help you guarantee optimal quality and good functioning of code thanks launching of automatic tests. But it also warns you about the known vulnerabilities of your dependencies.

[Github Actions for Symfony 5, PHPUnit, and more](https://dev.to/romaixn/github-actions-for-symfony-5-phpunit-and-more-4e90)


###Timeless

I ran across Akashic Seer’s blog last week, which is a treasure chest of Symfony-related posts. Here are a few posts from his archive.

[Symfony 5+ check if user is logged in inside a twig template](https://akashicseer.com/web-development/symfony-5-check-if-user-is-logged-in-inside-template/)

[How to install and configure Redis in Symfony 5+ for local testing](https://akashicseer.com/web-development/how-to-install-and-configure-redis-in-symfony-5-for-local-testing/)

![PHP Logo](https://symfonystation.com/sites/default/files/inline-images/php-logo.png)

##PHP

###This week


Our “frenemies” at Laravel have this helpful video for your enjoyment.

[Getting Started With PHP in 2022](https://laravel-news.com/getting-started-with-php-in-2022)


Mateusz Cholewka says that you should manage your logs if you are using Docker and cloud services to run your application live.

[How to configure PHP logs for Docker](https://medium.com/@kontaktmtk3d/how-to-configure-php-logs-for-docker-6c70ae75d9e2)



Sticher.io notes that PHP 8.1 will be released on November 25, 2021. We already know all the new features, performance improvements, changes, and deprecations, so let's go through them one by one.

[What's new in PHP 8.1](https://stitcher.io/blog/new-in-php-81)

Brent also had this article.

[PHP 8.1 in 8 code blocks](https://stitcher.io/blog/php-81-in-8-code-blocks)

And this video.

[Generics in PHP (video)](https://stitcher.io/blog/generics-in-php-video)


In another video, Kinsta shows us:

[How to install PHP on any server](
https://www.youtube.com/watch?v=mVzL2MRFANI)



Beau Beauchamp tells us why PHP is more popular and more hated than ever.

**I thought about going with this one for the featured post.**

[PHP Is Killing Python](https://beau-beauchamp.medium.com/php-is-killing-python-2be459364284)


And we still get these kinds of articles generated from “data” from “a survey by”.

[Is PHP Doomed to Decline in the Long Term? TIOBE Thinks So.](https://insights.dice.com/2021/11/09/is-php-doomed-to-decline-in-the-long-term-tiobe-thinks-so/)



And yet another comparison article, this time for Node.JS.

[PHP vs. Node.js: Which is Better for Backend Development?](https://www.aeliusventure.com/php-vs-node-js-which-is-better-for-backend-development/)



Starting your journey as a PHP developer? Here are some of the best PHP Projects to inspire you.

[10+ The Best PHP Projects GitHub 2022](https://dev.to/theme_selection/10the-best-php-projects-github-2022-2o7m)


Type variance allows types to change during inheritance in a way that is compatible with the Liskov substitution principle. This article describes how this works on a technical level.

[Type variance in PHP](https://www.npopov.com/2021/11/08/Type-variance-in-PHP.html)


###Last Week

 
Smaine Milianni states “Le but de cet article est de donner une vue d’avion sur ce qu’est l’architecture hexagonale et de faire un retour d’expérience sur son utilisation dans un contexte professionnel.” 

[L’archi Hexa est-ce archi bien? Is hexagonal architecture good architecture?](https://smaine-milianni.medium.com/larchi-hexa-est-ce-archi-bien-fd0449b32e33)

###Timeless

In a post from last year, JetBrains notes the Pest PhpStorm plugin is a new addition to PhpStorm’s growing ecosystem. With this plugin, testing your code in your favorite IDE is even simpler and faster!

[How the Pest PhpStorm Plugin Will Improve Your Testing Workflow](https://blog.jetbrains.com/phpstorm/2020/10/how-the-pest-phpstorm-plugin-will-improve-your-testing-workflow/)



In a similar vein, Laravel News says Better PHPUnit is a Visual Studio Code plugin by Caleb Porzio for running PHPUnit tests from the editor. Like Sublime PHPUnit, it automates running repetitive PHPUnit commands using the command palette or keyboard shortcuts.

[Better PHPUnit VS Code Extension](https://laravel-news.com/better-phpunit-vs-code-extension)

![Code Logo](https://symfonystation.com/sites/default/files/inline-images/code-logo.jpeg)


##Other

In the Guardian, Jane Martinson writes, “I have been at the Web Summit in Portugal, a sort of Davos for the technology industry, which ended with the sense that after years of talk about harm and regulation, the demands are increasing, and change is finally in the air.

While it is true that most of the 40,000 startup founders, investors, and other attendees still yearn to be the next $7tn company like Meta, there was also genuine discussion about the kind of tech and the kind of society that discovers children are being harmed, and democracies undermined and yet does little or nothing about it.”

[Mark Zuckerberg and the tech bros are still on top – but their grip is loosening](https://www.theguardian.com/commentisfree/2021/nov/06/mark-zuckerberg-facebook-woes-rebranding-meta)


Burke Holland says: “One of the first things you realize after getting started with GitHub’sCodespaces, is that you desperately want your custom environment setup that you enjoy locally to somehow magically be available in Codespaces. You can do that using a “dotfiles” repo, and in this post, we’re going to look at how to set up a dotfiles repo and what quirks you need to be aware of to use it with Codespaces.

[How to add your dotfiles to GitHub Codespaces](https://burkeholland.github.io/posts/codespaces-dotfiles/)


Travis Weston notes that: “one of the first lessons you learn when getting into business is that there are two types of debt: Good debt and bad debt. Technical debt is no different. We’ll never avoid technical debt entirely, but we can prevent bad technical debt.”

[The (Technical) Debt Snowball: Pay down technical debt without going bankrupt in the process.](
https://levelup.gitconnected.com/the-technical-debt-snowball-811a7918f1df)


I learned a lot about edge servers from this post by Kinsta.

[How Do Edge Servers Work? Everything You Need to Know](https://kinsta.com/knowledgebase/edge-servers/)



Docker has the details on Docker Desktop 4.2 and its expanded capabilities.

[Docker Desktop 4.2 Release: Save Your Battery with Pause / Resume, and Say Goodbye to the Update Pop-up](https://www.docker.com/blog/docker-desktop-4-2-release-save-your-battery-with-pause-resume-and-say-goodbye-to-the-update-pop-up/)



Have you published or seen something related to Symfony or PHP that we missed? If so, [please contact us](https://symfonystation.com/Contact).

That's it for this week. Thanks for making it to the end of another extended edition. ;) I look forward to sharing next week's Symfony and PHP news with you on Friday. 
 
Please share this post. :) Be sure to [join our newsletter list](https://symfonystation.com/Communiques), so you get each week's communique directly in your inbox (a day early). And follow us on Twitter at [@symfonfystation](https://twitter.com/SymfonyStation).
 
Happy coding Symfonistas!
 

Reuben Walker
Founder [Symfony Station](https://symfonystation.com/)
Reuben is also Ringmaster of Mobile Atom Media and its division Mobile Atom Code.