Symfony Station Communique - 10 December 2021. A Look at Symfony and PHP News.

This post originally appeared on Symfony Station.

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 extensive again, so take your time and enjoy its most valuable items.

Thanks to Javier Eguiluz and Symfony for sharing our last communique in their Week of Symfony.

My opinions will appear in bold.

Symfony

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

Highlight -> "This week, Symfony 5.4.0 and 6.0.0 stable versions were released. In addition, SymfonyInsight announced its support for PHP 8.1. Finally, the SymfonyWorld Online conference is coming next week."

A Week of Symfony #779 (29 November - 5 December 2021)
https://symfony.com/blog/a-week-of-symfony-779-29-november-5-december-2021

Fabian provided an overview of all the posts Javier published on what's new in Symfony 5.4 while adding some for 6.0.

Symfony UX is an initiative and set of libraries centered around the Stimulus JavaScript library. Symfony is pleased to announce several new releases:
Version 2.0 of all symfony/ux libraries
Version 3.0 of @symfony/stimulus-bridge
Version 2.0 of @symfony/stimulus-testing

Symfony UX has been updated to support Stimulus 3.

This one is self-explanatory.

Blackfire now supports PHP 8.1
https://blog.blackfire.io/php-8-1-support.html

Featured Item

We continue to highlight a post of the week.

Our second item of original content is out. It’s a dual-function one serving as a case study of how Symfony Station was built and our About page. Learn how Symfony, Drupal, Layout Builder, Layout Paragraphs, Bootstrap, and Gutenberg became a crew.

This week

Alex Daubois continues to publish helpful posts. This week he looks at end-to-end testing with Panther.

Via SymfonyCasts: "Join me on a quick aside from security to leverage Symfony's serializer component to create a user JSON API endpoint. You will LOVE the result!

Carlos Delgado has a tip article for us.

How to solve Symfony 6 Exception: The metadata storage is not up to date. Please run the sync-metadata-storage command to fix this issue.
https://ourcodeworld.com/articles/read/1645/how-to-solve-symfony-6-exception-the-metadata-storage-is-not-up-to-date-please-run-the-sync-metadata-storage-command-to-fix-this-issue

And I want to know how he created the fantastic mouse effect on his site.

Last Week

Slawomir Dymitrow created a Symfony 6 based Application that can serve as an Enterprise Architecture reference for anyone who's planning to build Large Scale Applications with Symfony. It uses a similar 'Blog' theme as the official Symfony Demo.

PHP: Symfony Demo meets Modular, Microservice-ready Architecture - Part 1
https://www.kode-krunch.com/2021/11/php-symfony-modular-architecture-demo-part-1.html

PHP: Symfony Demo meets Modular, Microservice-ready Architecture - Part 2
https://www.kode-krunch.com/2021/12/php-symfony-modular-architecture-demo-part-2.html

Timeless

As you may know, I ran across Akashic Seer's blog last month, which boasts Symfony-related posts. Here are a few more from his archive delivered with his unique approach.

Symfony 5+ how to include page-specific javascript or CSS when using Webpack encore and SASS
https://akashicseer.com/web-development/symfony-5-how-to-include-page-specific-javascript-or-css-when-using-webpack-encor-and-sasse/

I also found another treasure trove of Symfony posts on Twilio’s blog and will share them starting with:

A Beginner's Guide to Test Driven Development With Symfony and Codeception
https://www.twilio.com/blog/beginners-guide-test-driven-development-symfony-codeception

A Beginner's Guide to Test Driven Development With Symfony and Codeception - Part 2
https://www.twilio.com/blog/beginner-guide-to-test-driven-development-with-symfony-codeception-part-2

PHP

This week

Tara Prasad Routray wants you to learn the most outstanding features offered by the PHP 8.1 update.

Brent Rose is tired of hearing this question. Is PHP dead? He gives his answer in this video.

*And the obvious answer to quote Ted Lasso’s Roy Kent is “Fuck no”! Unfortunately, this stupidity is wearing on me as well.
*

PHP Releases has an interesting new site with the details on all PHP versions.

Cloudways notes “if you’re are doing development on web application, having a PHP server is perfect way, the most perfect way to start.”

Best Open Source PHP Servers for Your Next Web Application
https://www.cloudways.com/blog/best-php-servers/

Dharizza Espinach wrote an excellent introduction to services, plugins and events in Drupal.

An Introduction to Services, Plugins and Events in Drupal
https://evolvingweb.ca/blog/introduction-services-plugins-and-events-drupal

Block are covered in the article above and this one shows you how to create one.

Programmatically Creating a Block in Drupal 9 – A Brief Tutorial
https://www.specbee.com/blogs/programmatically-creating-block-in-drupal-9

Timeless

In this enlightening post, Christian Lück does a great job of looking at Fibers, Promises, Coroutines, and async/await keywords.

Fibers in PHP: A new opportunity for async PHP?
https://clue.engineering/2021/fibers-in-php

Other

You should take this survey today.

Open Source Initiative Launches New Free Membership Level, Opens 2022 OSS Usage Survey
https://wptavern.com/open-source-initiative-launches-new-free-membership-level-opens-2022-oss-usage-survey

TechCrunch has this interesting question.

HTTP/3 is here, and it’s a big deal for web performance. See just how much faster it makes websites!

Looking to up your Docker build game? Trying using a .dockerignore file for more efficient and secure builds. Jack Wallen shows you how.
What are .dockerignore files, and why you should use them?
https://www.techrepublic.com/article/what-is-a-dockerignore-file-and-why-you-should-be-using-them/

Have you published or seen something related to Symfony or PHP that we missed? If so, please contact us.

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, so you get each week's communique directly in your inbox (a day early). And follow us on Twitter at @symfonfystation.

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.
https://media.mobileatom.net/about-us/
https://www.mobileatom.net/

25