Symfony Station Communiqué - 11 March 2022. A look at Symfony and PHP news!
Tags: symfony, php, drupal, cybersecurity
Published: 2022-03-11 14:56:27


This post originally appeared on [Symfony Station](https://www.symfonystation.com/Symfony-Station-Communique-11-March-2022).

Welcome to this week's Symfony Station Communiqué. It's your weekly review of the most essential news in the Symfony and PHP development communities. 

This week, we continue our coverage of the war crimes going on in Ukraine and how you can help. That sparks some cybersecurity coverage as well. There was not much Symfony news so I’m adding in extra Drupal coverage that overlaps with Symfony development.

Take your time and enjoy the items most valuable for you.

Thanks to Javier Eguiluz and Symfony for sharing [our last communiqué](https://www.symfonystation.com/Symfony-Station-Communique-4-March-2022) in their [Week of Symfony](https://symfony.com/blog/a-week-of-symfony-792-28-february-6-march-2022).

**Please note that links will open in a new browser window. My opinions will be in bold.**

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

Highlight -> “This week, Symfony 4.4.39, 5.4.6, and 6.0.6 maintenance versions were released. In addition, the entire schedule of the SymfonyLive Paris 2022 conference was published. Finally, Symfony expressed its solidarity with Ukrainian people.”

[A Week of Symfony #792 (28 February - 6 March 2022)](https://symfony.com/blog/a-week-of-symfony-792-28-february-6-march-2022)

They also remind us that “the French SymfonyLive conference organized in Paris will be soon here! Join us on April 7th and 8th for 2 days of Symfony talks. Regular pricing ends on March 14th!”

[Only 4 weeks left before SymfonyLive Paris 2022](https://symfony.com/blog/only-4-weeks-left-before-symfonylive-paris-2022)

SymfonyCasts continues its exploration of EasyAdmin.

[This week on SymfonyCasts](https://5hy9x.r.ag.d.sendibm3.com/mk/mr/RtcyA54tRUL-HV-kV9jrNNsaILa64Botih_zXgPbN3_Fzq_Az3hJ04XE27qGwnq5FpBjoZbHJmjKLm7OUJMvW0Ca0T57r9mKpDyxVKSV8ryrlbNP6dKU0CB5ilXpD-vW4LEpP464VA)

![https://symfonystation.com/sites/default/files/inline-images/symfony_black_02_0.png](https://symfonystation.com/sites/default/files/inline-images/symfony_black_02_0.png)

## Featured Item

![https://symfonystation.com/sites/default/files/inline-images/Featured-Item_1_0.png](https://symfonystation.com/sites/default/files/inline-images/Featured-Item_1_0.png)

A recent Forbes article notes “over one-quarter of U.S. consumers have not taken *any* steps to protect their digital/online privacy - and that means it is more important than ever for organizations to ensure their software and applications are as bulletproof as possible against bad actors. However, the rapid shift to digital and the fast-paced nature of business in today’s post-pandemic world, coupled with the growing and sophisticated threat landscape, continues to challenge even the most advanced security teams.

Something needs to change, and one company is arguing that the industry requires a new approach to security centered on developers. After all, developers have become the lifeblood of an organization's digital transformation journey - but the faster developers move to bring new applications to market, the greater the chances for flaws or security issues within their code.”

[Why the Future of Cybersecurity Rests in Developers’ Hands](https://www.forbes.com/sites/garydrenik/2022/03/09/why-the-future-of-cybersecurity-rests-in-developers-hands/?sh=a22449b7457c)

**I wholeheartedly agree with this.**

## Symfony

### This Week

Dans français Guillaume Ponty explores 3rd-party authentication with Symfony.

[Symfony 6: S’authentifier avec Google, Facebook, GitHub, …](https://www.dev-web.io/2022/03/07/symfony-6-sauthentifier-avec-google-facebook-github/)

Heddi Nabbisen has this interesting tutorial for us:

[EasyAdmin 4 for admin panel based on PHP 8 and Symfony 6: Install and create a sample](https://dev.to/nabbisen/easyadmin-4-based-on-php-8-and-symfony-6-install-and-create-a-sample-4gcg)

Andy Blum writes “Following Drupal 8’s ambitious overhaul to “get off the island,” the recommended way to create a new Drupal site is to use composer to manage all PHP dependencies. By now, most Drupal developers will have had a chance to install a new module or update existing modules using composer’s `require` or `update` commands, but did you know that you can also use composer to run scripts to interact with your code?”

[Add a Composer Script to Your Module or Theme](https://www.lullabot.com/articles/add-composer-script-your-module-or-theme)

Griffin Polonus writes “PHP 8 includes improvements that show a clear desire to modernize, as 
well as capabilities of other popular languages that developers will appreciate. Thanks to PHP 8, Drupal 10 can now use tools that will enable continued growth and enhanced performance. Upgrading to PHP 8 will be beneficial to any site running on PHP–however, as a Drupal developer, I’m particularly excited about how this will impact Drupal 10. I’ll highlight some of the benefits that apply to many sites, but especially how it may apply to Drupal.

[PHP 7 to 8: Entering the Modern Era of Programming Languages](https://www.bounteous.com/insights/2022/03/03/php-7-8-entering-modern-era-programming-languages/)

Golems states, “Drush (the Drupal Shell) is one of the most convenient and functional assistants for all Drupal developers. Read on if you're interested in learning how Drupal 9 and Drush work together, what benefits it has, and how easy it is to sanitize data with Drush.”

[Drupal 9: Sanitizing Data With Drush](https://gole.ms/blog/drupal-9-sanitising-data-drush)

### Last Month

Manish Saharan says, “In this article, we’re going to discuss two such Drupal 8/9 utility tools that have massively simplified and improved the way you work with Drupal code, modules, and installations - Drupal Console **(leveraging Symfony Console)** and Drush.”

[Accelerating Drupal Development with Drupal Console and Drush](https://www.specbee.com/blogs/accelerating-drupal-development-with-drupal-console-and-drush)

### Timeless

As we noted in [How Symfony Station was built: an adventurous exploration of layout solutions](https://www.symfonystation.com/How-Symfony-Station-Built), **the default Drupal admin theme is an eye-destroying abomination. We wrote “Gin is beautiful in comparison. It's clean, cool, and collected with some customization options.”** It was built on the foundation of Claro from one of the lead designers of the Claro & Drupal Design System.

Clayton Dewey expounds upon this with, “I’ve seen, time and again, the difference a clean and modern website editing interface can have on both the quantity and quality of site content. When a website’s back-end is frustrating and unappealing to work with, it dissuades the author from posting.” In a multi-post series, he explores the wonders of Gin. 

**There are a lot of design lessons to pick up in the series. And if you’re a new Drupal user, lessons on how to use it. It’s perfect for larger publishers.**

[Enhance Your Drupal Website’s Authoring Experience Part 1 - Modernize the Admin Theme with Gin](https://devcollaborative.com/blog/enhance-your-drupal-websites-authoring-experience-part-1-modernize-admin-theme-gin)

[Enhance Your Drupal Website's Authoring Experience Part 2 - Declutter the User Interface](https://devcollaborative.com/blog/enhance-your-drupal-websites-authoring-experience-part-2-declutter-user-interface)

[Enhance Your Drupal Website’s Authoring Experience  Part 3 - Improve the Field User Interface](https://devcollaborative.com/blog/enhance-your-drupal-websites-authoring-experience-part-3-improve-field-user-interface)

[Enhance Your Drupal Website’s Authoring Experience  Part 4 - Fine Tune Admin Pages](https://devcollaborative.com/blog/enhance-your-drupal-websites-authoring-experience-part-4-fine-tune-admin-pages)

[Enhance Your Drupal Website's Authoring Experience Part 5 - Accessibility Tools and Conclusion](https://devcollaborative.com/blog/enhance-your-drupal-websites-authoring-experience-part-5-accessibility-tools-and-conclusion)

Note: Drupal is addressing their usability problem with a version of Claro that will be non-experimental for core in v. 10.

![https://symfonystation.com/sites/default/files/inline-images/Horizontal-Inspector-Tagline-Logo_0.png](https://symfonystation.com/sites/default/files/inline-images/Horizontal-Inspector-Tagline-Logo_0.png)

*Sponsored Article*

We published our third sponsored article on Symfony Station exploring **how to Implement Code Execution Monitoring for your Symfony apps via Inspector.** Like all our articles it is now available via audio.

[How to Implement Code Execution Monitoring for your Symfony apps via Inspector](https://www.symfonystation.com/how-implement-code-execution-monitoring-symfony-inspector)

*All  sponsored articles are for products we have vetted and stand behind. We either use them or would do so if they were applicable to the Symfony Station site.*

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

## PHP

### This week

Rafael Bernard Araujo explores Domain-Driven Design in and value object:

[Introducing value objects in PHP](https://rafael.bernard-araujo.com/introducing-value-objects-in-php.php)

Tomasz Dobrowolski covers dependency injection and writes, “while it sounds complex, it’s not as scary as it sounds on the surface. And if used correctly, it can transform your code to be cleaner and easier to work with.”

[What Is Dependency Injection in PHP and How You Can Use It to Write Better Code](https://tomdob1.medium.com/what-is-dependency-injection-in-php-and-how-you-can-use-it-to-write-better-code-8c5fbbbc2f6a)

Marco Aurélio Deleu says, “I have been working on a new Runtime for Bref for a while now and it has been my biggest open source journey so far. It has been incredibly challenging and a great learning experience. In this post, I want to run through some key aspects that I faced while working on this.”

[3 things I learned working on a Bref Runtime](https://blog.deleu.dev/3-things-i-learned-working-on-a-bref-runtime/)

Frank de Jonge shows us how to:

[Use a message envelope](https://blog.frankdejonge.nl/use-a-message-envelope/)

Andreas Heigl takes a look at PHP attributes.

[Attributes are awesome](https://andreas.heigl.org/2022/03/06/attributes-in-constructor-property-promotion/)

Harpreet Kaur notes “Memcache is object storing mechanism which is used to store the results of database queries helping websites to serve pages faster. Memcaching process stores data as key-value pairs in memory so that it can be accessed later. It will be useful in those applications which rely heavily on database queries. Memcaching is going to improve the performance of the application significantly.”

[What is Memcache & How to use it in PHP](https://kharpreet9.medium.com/what-is-memcache-how-to-use-in-php-3f74928a6002)?

Ten7 looks at Memcache in Drupal.

[Memcache Testing and Proxying](https://ten7.com/blog/post/memcache-testing-and-proxying)

Gene Wilburn needed to build a lightweight search functionality. He writes “As I thought about a solution for this small site, I thought of grep, the open-source search utility with a long Unix heritage that can rip through text files to search for words or phrases and show them in context.”

[Greppy: A Lightweight Perl/PHP Website Search Engine Based on Grep](https://genewilburn.medium.com/greppy-a-lightweight-perl-php-website-search-engine-based-on-grep-effecad283af)

Jakub Misek says, “Have you heard about the [**Visual Studio Code for the Web**](https://code.visualstudio.com/docs/editor/vscode-web)? It's the code editor running in your browser, allowing you to work with your local files, files on your GitHub repositories, or files on Azure. Anywhere.

In the case of the PHP language, it is only suitable for quick edits on small projects, due to its limitations. However, PHP Tools for Visual Studio Code is newly available for VS Code for the Web. All the editor features can now be used in this browser-based development environment.”

[PHP IntelliSense on the Web](https://blog.devsense.com/2022/php-intellisense-web)

### Last Month

Alessandro Castellano has a new tutorial and says, “you are going to see how class constructors work in PHP, what happens with class inheritance, and a new PHP 8 feature called “argument promotion”.”

[PHP Constructors Explained](https://alexwebdevelop.com/php-constructors/)

WPGraphQL notes “Setting up End to End tests for WordPress plugins can be done in several ways (Codeception, Cypress, Ghost Inspector, etc), but lately, the easiest way I’ve found to do this is to use the @wordpress/env and @wordpress/scripts packages, distributed by the team working on the WordPress Block Editor (a.k.a. Gutenberg), along with GitHub Actions.”

[Adding End 2 End Tests to WordPress plugins using wp-env and wp-scripts](https://www.wpgraphql.com/2022/02/17/adding-end-2-end-tests-to-wordpress-plugins-using-wp-env-and-wp-scripts/)

Frank Pins explores Gitlab pipelines in a series of articles.

[Optimizing Gitlab pipelines - Basics (1)](https://prinsfrank.nl/2022/02/15/Optimizing-gitlab-pipelines-pt-1-basics)

[Optimizing Gitlab pipelines - PHPUnit (2)](https://prinsfrank.nl/2022/02/16/Optimizing-gitlab-pipelines-pt-2-phpunit)

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

## Other

[Please visit our Support Ukraine page](https://www.symfonystation.com/Support-Ukraine) to learn how you can help kick Russia out of Ukraine (eventually).

I think we should all stop doing business with Russian companies. However, many think internet access is an exception. At this point, I am not sure. But Cloudflare is.

[Cloudflare won’t cut off Russia, says it “needs more Internet access, not less”](https://arstechnica.com/tech-policy/2022/03/cloudflare-wont-cut-off-russia-says-it-needs-more-internet-access-not-less/)

It seems that Twitter itself agrees as it has created an onion site for Tor browsers.

[Learn more in this Tweet thread](https://twitter.com/AlecMuffett/status/1501282223009542151)

And Lumen does not.

[Breaking Russia's internet backbone](https://www.zdnet.com/article/breaking-russias-internet-backbone/)

Venture Beat has a report on the Ukrainian IT Army’s offensive.

[Ukraine’s IT army is doing well, hitting Russia with ‘cost and chaos’](https://venturebeat.com/2022/03/04/ukraines-it-army-is-doing-well-hitting-russia-with-cost-and-chaos/)

Anonymous continues its assault on Putin’s minions and lackeys.

[Anonymous claims it hacked into Russian TVs and showed the true devastation of Putin’s Ukraine invasion](https://fortune.com/2022/03/07/anonymous-claims-hack-of-russian-tvs-showing-putins-ukraine-invasion/)

Cyber Scoop reports “NATO nations voted unanimously last Friday to admit Ukraine to their Cooperative Cyber Defence Centre of Excellence (CCDCOE), a development which experts said will help Ukraine fight off mounting cyber threats from Russia.”

[Ukraine, looking to fortify itself against Russian attacks, admitted to NATO cyber center](https://www.cyberscoop.com/ukraine-admitted-nato-ccdcoe/)

The free world also needs to kick up its defensive game. Three companies are aiding the effort.

[Cloudflare, CrowdStrike, and Ping Identity launch the Critical Infrastructure Defense Project](https://blog.cloudflare.com/announcing-critical-infrastructure-defense/)

What won’t work is the Ostrich approach.

[It's time to stop hoping that cybersecurity problems will just go away](https://www.zdnet.com/article/its-time-to-stop-hoping-that-cybersecurity-problems-will-just-go-away/)

One way to defend your site is to block access to it by country. If you don’t have an audience in Russia, you should do so. **We do so we aren’t.** 

[How to block access to your website and related services in Russia, PHP 8, and client-side alternatives](https://research.louisbrulenaudet.com/how-to-block-access-to-your-website-and-related-services-in-russia-5426289e57ca)

Tawhid has this security advice for us:

[11 Security tips to protect your website](https://dev.to/dumboprogrammer/security-tips-to-protect-your-website-50np)

As an example of an attack, Nevulo explains XSS. “Cross-site scripting is an attack performed on websites, where an attacker can inject some malicious code or scripts that get executed to modify the behavior of that website.”

[What is cross-site scripting (XSS) and how does it work?](https://dev.to/nevulo/what-is-cross-site-scripting-xss-and-how-does-it-work-369)

Harvard Business Review’s Stuart Madnick takes a peek at where this might all lead.

[What Russia’s Ongoing Cyberattacks in Ukraine Suggest About the Future of Cyber Warfare](https://hbr.org/2022/03/what-russias-ongoing-cyberattacks-in-ukraine-suggest-about-the-future-of-cyber-warfare?utm_campaign=hbr&utm_medium=social&utm_source=twitter)

Via Fast Company “MacPaw’s Julia Petryk talks about sheltering in an underground parking garage, enduring Russian propaganda, and confronting the emotional toll of the war.” [MacPaw is a Ukrainian company we urge you to support](https://www.symfonystation.com/Support-Ukraine).

[What it’s like to work at a Ukraine tech company during Russia’s invasion](https://www.fastcompany.com/90728446/ukraine-invasion-tech-company-macpaw)

Speaking of tech companies:

[It took a war for Big Tech to take a side](https://www.vox.com/recode/2022/3/9/22968744/russia-ukraine-facebook-tiktok)

Here are a few articles examining why Putin’s war of terror is not going so well **(aside from the fact that most thugs are corrupt, dumb, and incompetent)**.

[Putin Underestimated the Connective Tissue of Capitalism](https://marker.medium.com/putin-underestimated-the-connective-tissue-of-capitalism-1b63abf337ff)

[The Strategy That Can Defeat Putin](https://www.theatlantic.com/ideas/archive/2022/03/strategy-west-needs-beat-russia/626962/)

[The Spectacular Collapse of Putin’s Disinformation Machinery](https://www.wired.com/story/putin-collapse-disinformation-machinery-ukraine)

**And now in more encouraging news,** here’s a look at the impressive things coming to CSS. Michelle Barker writes “It’s fair to say that we’re in a booming era for CSS right now. As I write this, I notice that many of these new features have some things in common. Yes, they often help us write better, cleaner, and more efficient code.”

[New CSS Features In 2022](https://www.smashingmagazine.com/2022/03/new-css-features-2022/)

Icons are always useful for UI, UX, and web design. Here’s how to use Font Awesome no matter your dev/design stack.

[Now You Can Stop Shoehorning Solutions to Get Icons Working with Your Tech — Font Awesome Matches Your Tool Stack](https://blog.fontawesome.com/use-font-awesome-in-your-tool-stack/)

Microsoft made an announcement that will make JavaScript developers happy.

[A Proposal for Type Syntax in JavaScript](https://devblogs.microsoft.com/typescript/a-proposal-for-type-syntax-in-javascript/)

Writing for Forbes, Amir Husain says:

[Decentralization Is the Future of Software](https://www.forbes.com/sites/amirhusain/2022/03/08/decentralization-is-the-future-of-software/)

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 at the bottom of our site’s pages](https://www.symfonystation.com/contact). Joining gets you each week's communiqué in your inbox (a day early). And [follow us on Twitter at @symfonfystation](https://twitter.com/symfonystation).

Do you own or work for an organization that would be interested in our promotion opportunities? If so, [please contact us](https://www.symfonystation.com/Contact). We’re in our infancy so it’s extra economical. ;)

More importantly, if you are a Ukrainian company with coding-related products, we can provide you with free promotion on [our Support Ukraine page](https://www.symfonystation.com/Support-Ukraine). Or if you know of one, get in touch.

Keep going Symfonistas!

![https://symfonystation.com/sites/default/files/inline-images/Reuben-Blur.jpg](https://symfonystation.com/sites/default/files/inline-images/Reuben-Blur.jpg)

### Reuben Walker

Founder
Symfony Station