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.
*Please note all links will open in a new browser window. My opinions, if I present any, will be in bold.
As always, we will start with the official news from Symfony.
Highlight -> “This week, Symfony 5.4.0 BETA3 and 6.0.0 BETA3 versions were published so you can test them on your applications before their final release at the end of the month. In addition, the Symfony Core Team added four new members to help grow the Symfony project in the next few years.”
Javier continues a series of posts on what’s new in Symfony 5.4.
- New in Symfony 5.4: Dependency Injection Improvements
- New in Symfony 5.4: Messenger Improvement
- New in Symfony 5.4: Profiler improvement
Great deals are still available if you are looking for official certification. November 29th is the last day though!
Symfony added to the official docs with information on Flex Private Recipe Repositories.
And this one is self-explanatory.
We continue to highlight a post of the week.
Please let us know what you think about this one.
It’s not the most important article of the week considering the news about PHP 8.1 and The PHP Foundation. However, it is the first original content created by Symfony Station so it gets the nod for our Featured Item. ;)
Speaking of Twig, Prince Sinha shows us how to:
Via SymfonyCasts: “We've got some logged in users but we don't want them going anywhere they please around our app. The most precise way to protect your site is by denying access from each Symfony controller and we'll cover about 5 good ways to do that!”
Here’s an interesting case study involving updating both PHP and Symfony.
Smaine Millani writes: “In this article, I’ll show how you can add validation on a Request content. (It’s more about a way to learn more about Request and event listener than a best practice.)”
Ahmed Khaled Mohamed shows us how to:
Alexandre Daubois tells you to “Brace yourself: autocompletion on options and arguments is finally here!”
Our friends at Jolicode show us how to:
Maks Rafalko demonstrates how to:
It seems like there is one of these every week. But, I find something useful in each one so we’re sharing.
If you discovered this communique and are new to Symfony, this article is a good introduction.
In French UrbanLinker writes: “In order to help developers and CTOs in their migration to Symfony, SensioLabs has made available a comprehensive migration guide on this subject. From the PHP environment, to the advantages of Symfony via the legacy code, everything is explained to migrate smoothly.”
Hurray. An article on YAML was published and it’s a comparison with JSON and XML.
I ran across Akashic Seer’s blog earlier this month, which is loaded with Symfony-related posts. Here are a few more from his archive.
The PhpStorm blog made a big announcement you may have seen elsewhere. I made a contribution for #GivingTuesday and encourage you to do likewise.
Joe Watkins provides some very interesting details of how the foundation came about and what it requires.
In other big PHP news!
Finally, if you want to check it out via video, here’s one from JetBrainsTV.
Mark Baker notes: “One of the many new features of PHP 8.1 is the ability to declare class constants as final, so that they can no longer be overridden in child classes. The same applies when constants are defined as final in an abstract classes, or interface; they can’t be overridden by classes extending that abstract or implementing that interface. So class and interface constants can now truly become constant.”
DerEuroMark wonders “if you use open-source software, you might wonder, why all those changes and why you should migrate up to the next major versions.”
Wouter de Jong writes: “Every now and then, there seems to be a lot of fuss in the PHP community about deprecations. In these discussions, deprecations are often discussed as if they are fatal errors. I think that is very wrong. Let’s reduce our expectations of deprecations. It’ll make everyone’s lives much less stressful.”
I ran across an impressive looking new book on PHP. If you have seen it before, this edition is updated for version 8.1.
Front Line PHP also has a PHP Cheat Sheet.
We shared several posts from Samuel Fontebasso in the last communique. His series on PHP, Nginx, and Docker continues with this one.
Bulletproof PHP writes: “Rather than yet another generic overview of the language or a point-by-point refutation of the things people say is wrong with it, what I want this post to be more than anything else is kind of a comprehensive list of ✨good things about PHP.✨ “
Along those lines this article from Raft Labs has some great resources for learning PHP.
Behzad Fazelasl says: ”Writing tests is inseparable from programming. If you want to be sure about deploying your code without unexpected failure, writing tests is going to be of assistance. The more tests you write, the more test coverage you get on your code which leads to more confidence.
But there is a big problem. There should be a sort of measurement to make sure enough tests have been written.”
Matthew Setter asks why deploy with Docker, especially when there are so many other deployment options?
Peter Packet didn’t pick any peppers but he did author this interesting post.
Here is an article about another PHP Templating language.
The Voices of the Elephant podcast spoke with Ben Ramsey, the Release Manager for PHP 8.1.
The Guardian asks a simple but extremely important question.
Toptal also has a question. One I’ve asked myself.
We have shared several posts from Mateusz Cholewka. He continues his series on Docker here.
Here’s a useful tool for anyone who’s making code tutorials.
Torque Mag has a post on helpful tools as well. Mobile Atom Code and Symfony Station use a variety of these and the list is legit.
I ran across this on freeCodeCamp and although it’s from February it’s a good resource for working with APIs.
We have been sharing Wouter Carabain’s series on using Symfony and React together. Here’s the latest article.
ReadWrite wants to predict:
DeliciousBrains tells us how to:
And CSS-Tricks shows us how to:
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!