Symfony Station Communique - 8 October 2021. A Look at Symfony and PHP News.
Tags: symfony, php, yaml, doctrine
Published: 2021-10-08 13:11:37

This post originally appeared on [Symfony Station](https://symfonystation.com/).

Welcome to this week's Symfony Station Communique. It’s a weekly review of the most valuable and essential news in the Symfony and PHP development communities.
 
Thanks to the team at [Symfony's blog](https://symfony.com/blog/) for featuring [our previous Communique](https://symfonystation.com/symfony-station/f/symfony-station-communique-1-october-2021) on Sunday!
 
We are again light on articles this week. We are still in Cape Cod celebrating Oktoberfest. ;) Next week we promise you a large edition.
 
*Please note all links will open in a new browser window. My opinions, if I present any, will be in italics.

##Symfony

###This week

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

Highlight -> “This week, Symfony 4.4.32 and 5.3.9 maintenance versions were released. Meanwhile, we continued polishing the upcoming Symfony 5.4 and 6.0 versions with some bug fixes and new features such as the option to configure log level and status code per exception class.”

[A Week of Symfony #770](https://symfony.com/blog/a-week-of-symfony-770-27-september-3-october-2021) (27 September - 3 October, 2021)


SymfonyCasts looks at how an ORM - like Doctrine - makes it easy to fall into a trap where too many queries are made. It's called the N+1 problem. They explore how to see it and *fix* it by joining across a relation in a custom query.

Doctrine has 4 different types of relations: ManyToOne, OneToMany, OneToOne and ManyToMany. But... you could argue that there are really only 3... or even 2! The Casts crew looks closer at the *true* number of unique relationship types.

[This week on SymfonyCasts]( 
https://5hy9x.r.ag.d.sendibm3.com/mk/mr/ayKff8dhp1J16ZHvhxRNcFc-7DPCUBzVVIMjaif-nqD3grE_AG0fu8xqTXufntY7yjkh-KT0HYOJTomD5oC9_eD_SiOsjx_vaR9q0J6b1QC0981jSZAHyyLnXOCX7eDs6s_Bq5Bqmw)


Luke Jennings provides the low-down on CloudWatch logging with Symfony and AWS.

[How to enable CloudWatch logging with Symfony on AWS](
https://medium.com/@nexidian/how-to-enable-cloudwatch-logging-with-symfony-on-aws-320bafa4ee94)
 

###Timeless

Wooter Carabain looks at interface instances in this article.

[How to inject multiple instances of an interface in a service using Symfony 5](
https://woutercarabain.com/webdevelopment/how-to-inject-multiple-instances-of-an-interface-in-a-service-using-symfony-5/)
 
We just ran across this article and it's a solid position from Code Enigma. 

[Why We Use Symfony]( 
https://www.drupal.org/association/supporters/blog/why-we-use-symfony)


##PHP

Tips to improve our PHP are always welcome. Here are ten good ones from Smaine Milianni.

[10 tips in PHP](
https://smaine-milianni.medium.com/10-tips-in-php-73d4b88f2f74)
 
And we all want to make our PHP code faster. Right? Ajay Kapoor has the dos and don’ts of how to approach it.

[The Do’s and Don’ts of Making Your PHP Website Faster](
https://medium.com/backenders-club/the-dos-and-don-ts-of-making-your-php-website-faster-b7b0df078e54)
 

##Other

*I am going to get up on my Frontend soapbox here. This is important. Follow Edan Ben-Atar’s advice regarding the overuse of divs in your HTML.*

[Semantic HTML Guide – 10 Alternatives to Using Divs](
https://www.freecodecamp.org/news/semantic-html-alternatives-to-using-divs/)


From Tech Republic: “Backed by industry leaders GitLab, VMware and Sourcegraph, Gitpod created an open-source project to bring browser-based development to VS Code free from Microsoft's control”.
 
[Gitpod releases browser-based Visual Studio code to get around Microsoft](
https://www.techrepublic.com/article/gitpod-releases-browser-based-visual-studio-code-to-get-around-microsoft/#ftag=RSS-03-10aaa0b)


On Medium, Mertcan Arguç has a useful article comparing GraphQL and REST.

[Graphql vs REST: How To Choose One Over The Other](
https://javascript.plainenglish.io/graphql-vs-rest-how-to-choose-one-over-the-other-7d835b2f35db)


You don’t see many articles on YAML so enjoy this one.

[Everything you need to know about YAML files](
https://thedeveloperstory.com/2021/10/03/everything-you-need-to-know-about-yaml-files/)
 
That's it for this week. I look forward to sharing a larger set of next week's Symfony and PHP news with you on Friday. 
 
Please share this post. :)
 
Happy coding Symfonistas!

Reuben Walker
Founder [Symfony Station](https://symfonystation.com/)
Reuben is also Ringmaster of [Mobile Atom Media](https://media.mobileatom.net/contact-2/) and its division [Mobile Atom Code](https://www.mobileatom.net/).