Symfony Station Communiqué - 8 April 2022. A look at Symfony, PHP, and Cybersecurity news!
Tags: symfony, php, cybersecurity, drupal
Published: 2022-04-08 14:12:14

[This article originally appeared on Symfony Station](https://www.symfonystation.com/Symfony-Station-Communique-8-April-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.

Again, we cover the tech aspects of the war crimes going on in Ukraine and how you can help. 

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

Thanks to Javier Eguiluz and Symfony for sharing [our last communiqué](https://www.symfonystation.com/Symfony-Station-Communique-1-April-2022) in [their Week of Symfony](https://symfony.com/blog/a-week-of-symfony-796-28-march-3-april-2022).

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

## Symfony

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

Highlight -> “This week, Symfony 4.4.40, 5.4.7, and 6.0.7 maintenance versions were released. Meanwhile, the upcoming Symfony 6.1 version added new features such as a Serializer profiler panel and a simpler bundle/extension configuration. Lastly, the SymfonyLive Paris 2022 conference will take place next week.”

[A Week of Symfony #796 (28 March - 3 April 2022)](https://symfony.com/blog/a-week-of-symfony-796-28-march-3-april-2022)

Javier Eguiluz previews an upcoming feature of the 6.1 update.

[New in Symfony 6.1: HtmlSanitizer Component](https://symfony.com/blog/new-in-symfony-6-1-htmlsanitizer-component)

SymfonyCasts continues their free look at Symfony 6 and Easy Admin paid courses.

[This week on SymfonyCasts](https://5hy9x.r.ag.d.sendibm3.com/mk/mr/aypgQAizvtCBhmpzg3l8G8D81TdWy608BFb_QVngdd1Z5O8fqZUVyrIGWGTxmh2OrUEGqLrBvzffBYut4mjB5qGNoXipaIs8RY-QRIPc0kbh26zjOrxl8dpZfA7sfUX47z4Qg3u9mA)

Platform. sh announced “We’re excited to announce that Platform.sh now offers OpenSearch as a service available and included on all plans. OpenSearch is a distributed RESTful search and analytics engine you can use for log analytics, a search backend, clickstream analytics, and more.

With the recent move by ElasticSearch to switch to a licensing model, it was important for us to propose a strong open-source alternative. And OpenSearch is completely open-source, so you could run and manage it on your own. But if you add it to a Platform.sh project as a service, all of the infrastructure is taken care of. All you have to take care of is your data: indexing it and retrieving it.”

[OpenSearch is here](https://platform.sh/blog/2022/opensearch-is-here/)

We missed this last week. Blackfire Monitoring now integrates with API-Platform.

[API-Platform Support](https://blog.blackfire.io/api-platform-support.html)

## 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)

**Democracies are far from perfect. However, while sometimes chaotic and prone to taking one step back for every two forward, they are the best governments in the world. Currently, they are in [a growing battle with autocracies](https://www.salon.com/2022/04/03/putins-and-the-battle-for-democracy-how-this-conflict-raises-the-global-stakes/) ranging from tyrannical to criminal for the future of mankind.**

The Copenhagen Pledge puts forward a vision for the digital age, based on democratic values and human rights. It serves as the overall value framework for the Tech for Democracy initiative.

[Take and sign the pledge](http://techfordemocracy.dk/join-the-initiative/)

Its Action Coalitions target specific issues at the intersection of tech, democracy, and human rights. Coalition partners engage in concrete activities and deliver concrete solutions in line with the Copenhagen Pledge.

[Action Coalitions](http://techfordemocracy.dk/coalitions/)

The Action Programme contains recommendations ****on how to transform the Copenhagen Pledge into action and charts a path for various areas, such as how to truly improve digital responsibility and mobilization.

[Action Programme](https://globaltfokus.dk/aktuel-blog/666-action-programme-for-tech-for-democracy-civil-society-recommendations)

Find the full [Action Programme and civil society´s 8 recommendations here](https://globaltfokus.dk/images//TechForDemocracy/TFD_Action-Programme.pdf).

**Please get involved today. You have to have open societies to have open-source.**

### This Week

WeLoveDevs says, “Ce questionnaire, d'environ 10 minutes, est proposé par Smaïne Miliani ainsi que la communauté WeLoveDevs.com (entreprises, experts, formateurs, indépendants) pour aider les développeurs à auto-évaluer leurs connaissances.” If you are fluent in French, take this test.

[Test Symfony 6](https://welovedevs.com/app/fr/tests/symfony-6)

Mohamad Eldhemy explores:

[The What-Why-How Guide of PHP code quality tools](https://medium.com/teknasyon-engineering/the-what-why-how-guide-of-php-code-quality-tools-6eaa6406859)

Sriram webnexs asks:

[What Is the Magento Marketplace Extension and How Does It Work?](https://dev.to/sriramwebnexs/what-is-the-magento-marketplace-extension-and-how-does-it-work-3j8b)

tangled net writes “Grav CMS allows developers to give third parties the ability to manage their (structured) content in a very elegant and flexible way. At the same time, there are few restrictions on how this content ends up displayed on the website — as long as the developer knows what he is doing.”

[Grav CMS — A way to pass URL parameters in a frontend form](https://tanglednet.medium.com/grav-cms-a-way-to-pass-url-parameters-in-a-frontend-form-a6ab88c930a)

Unearthed says, “we use the AWS service Cognito to issue JWTs to clients during authentication. From there, the JWT is exchanged with whichever services the user is interacting with in order to validate their identity. This is helpful when building out a service graph, since each JWT can 
describe an authenticated users session without any direct dependency on a user service.

It's worth mentioning, if you are using Symfony, there is a Symfony Bundle which will make some of the factories and services used in this blog post available from the container. In our application we decided instantiating these dependencies directly was preferable.”

[Decoding and validating AWS Cognito JWTs with PHP](https://dev.to/unearthed/decoding-and-validating-aws-cognito-jwts-with-php-3825)

Code has this very useful article for us:

[Drupal 9: Getting A Good Score In Google PageSpeed Insights](https://www.hashbangcode.com/article/drupal-9-getting-good-score-google-pagespeed-insights)

Droptica notes “In this article, we’ll present what standards are used to create Drupal projects. We will show you the basic aspects that are worth paying attention to and the tools that make work easier.”

[What are Drupal Coding Standards, and How to Use Them in Your Daily Work?](https://www.droptica.com/blog/what-are-drupal-coding-standards-and-how-use-them-your-daily-work/)

Arslan Ijaz looks at:

[Amazing UX design using Drupal](https://medium.com/new-writers-welcome/amazing-ux-design-using-drupal-1ac14708eb26)

### Last Month

Matt Robinson shares:

[What to Do With Your Drupal 7 Website](https://www.lullabot.com/articles/what-do-your-drupal-7-website)

Christian Kolb has two articles for us:

[Using CQRS in Symfony](https://blog.digital-craftsman.de/using-cqrs-in-symfony/)

[Using id value objects for better readability and type safety](https://blog.digital-craftsman.de/using-id-value-objects-for-better-readability-and-type-safety/)

![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

The April edition of php[architect] is out.

p[hp[architec](https://www.phparch.com/magazine/2022/04/testing-the-core/)t]

Tomasz Dobrowolski shows us:

[Why You Should Limit Your Use of Comments to Make Cleaner Code as a Developer](https://tomdob1.medium.com/why-you-should-limit-your-use-of-comments-to-make-cleaner-code-as-a-developer-bd1ddc810c9d)

Study Section notes “A session is a way to continue information across different web pages to recognize users as they traverse a site or app. There is absolutely no way a server could remember a specific user between multiple requests, which is why we call the HTTP protocol a stateless protocol.”

[Explaining this pattern with example in PHP — Server Session State](https://studysectionexam.medium.com/explain-this-pattern-with-example-in-php-server-session-state-ss-blog-71d9f8ae3cf0)

Farhan Tanvir shares “Here are 7 VSCode extensions which will help you to make the best use of VScode if you are a PHP developer.”

[7 useful VSCode extensions for a PHP developer](https://towardsdev.com/7-useful-vscode-extensions-for-a-php-developer-3d70ebc558b3)

Yacine Touati discusses:

[Setting up Dockerized cron jobs: For example, using PHP and MySQL](https://dev.to/yactouat/setting-up-dockerized-cron-jobs-example-using-php-and-mysql-272j)

The one and only Brent is back with “You've probably used the strategy pattern before: a behavioral pattern that enables selecting an algorithm at runtime.

Let's consider a classic example: the user provides some input either in the form of XML, JSON or an array; and we want that input to be parsed to a pretty JSON string.”

[Dynamic Strategies](https://stitcher.io/blog/strategies)

Jordi Bassaganas shares his:

[Titanic Truth About JavaScript, TypeScript, and PHP](https://medium.com/codex/titanic-truth-about-javascript-typescript-and-php-d43730c1e556)

Hicham Ben Kachoud continues his SOLID series with the I:

[Interface Segregation Principle](https://h-benkachoud.medium.com/interface-segregation-principle-ec256f3828fe)

Jarek writes “Generic types are templates which allow us to write code without specifying a particular type of data on which it will work. Thanks to them, we avoid redundancy and the objects operate on the previously declared types. A good example is collections of various types. If we want to be sure that a collection consists of a given data type, we can either create a separate class to store each type, use various types of assertions, or just use generic types.”

[How To Start Using Generic Types In PHP](https://dev.to/jszutkowski/how-to-start-using-generic-types-in-php-2f1k)

### Last Month

Andreas Moller notes “The chances are that you are already aware of the concept of named constructors. If not, take a look at Matthias Verraes' excellent article *Named Constructors in PHP*.

When it comes to consistently naming constructors, I currently apply the following rules for different types of objects.

- services
- exceptions
- entities
- value objects”

**Incredibly there were two articles on this last month.**

[Naming constructors](https://localheinz.com/blog/2022/03/26/naming-constructors/)

Stefan Priebsch writes “Despite a greatly improved type system in versions 7 and 8, PHP does not support constructor overloading. If an object has to be created in different ways, so-called named constructors are used. Are there any best practices for naming them?”

[How do you name constructors?](https://thephp.cc/articles/how-do-you-name-constructors)

![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).

### The cyber response to Russia’s War Crimes

CNBC reports “Alex Iskold, a tech entrepreneur and start-up investor, revived the 1K Project to provide direct relief to Ukrainian families impacted by the war.”

[A Ukrainian Techie Combined ‘Code and People' to Raise $3.5 Million So Far for Families Back Home](https://www.nbcdfw.com/news/business/money-report/a-ukrainian-techie-combined-code-and-people-to-raise-3-5-million-so-far-for-families-back-home/2930561/)

TechCrunch reports:

[Twitter limits reach for Russian government accounts and bans most POW imagery](https://techcrunch.com/2022/04/05/twitter-russia-prisoners-of-war-policy/)

Fortune reports “Hacker collective Anonymous announced on Twitter that it successfully breached and leaked the personal data of 120,000 Russian soldiers.

"All soldiers participating in the invasion of Ukraine should be subjected to a war crime tribunal," Anonymous said in the message.

The leak included personal information like dates of birth, addresses, passport numbers, and unit affiliation.

[Anonymous takes revenge on Putin’s brutal Ukraine invasion by leaking the personal data of 120,000 Russian soldiers](https://fortune.com/2022/04/04/anonymous-leaks-russian-soldier-data-ukraine-invasion/)

**After what we have seen this week, IMHO these soldiers are legitimate targets for hacktivism.**

NBC reports “Distributed Denial of Secrets, is best known for curating, publishing, and promoting giant caches of files from a variety of sources, including U.S. police departments, the conservative social media platform Gab and the far-right Oathkeepers, a prominent group involved in the Jan. 6 riot.

But since Russia invaded Ukraine, Best and her colleagues have been inundated with files that hacktivists say they’ve stolen from Russian banks, energy companies, government agencies, and media companies. For weeks, the group has scrambled to translate, verify, format, and upload files that they can assess are legitimate and new, with the caveat that they usually haven’t gone through every single file to assess if it hasn’t been altered or planted with malicious software.”

[Hackers flood the internet with what they say are Russian companies' files](https://www.nbcnews.com/tech/security/hackers-flood-internet-say-are-russian-companies-files-rcna21853)

The AP reports “The Biden administration has charged a Russian oligarch linked to the Kremlin with violating U.S. government sanctions, and disrupted a cybercrime operation that was launched by a Russian military intelligence agency, officials said Wednesday.”

[US charges Russian oligarch, dismantles cybercrime operation](https://apnews.com/article/russia-ukraine-putin-technology-viktor-vekselberg-europe-b5505db50b8a6337e647fe08b74fbe99)

The New York Times reports that the:

[U.S. Says It Secretly Removed Malware Worldwide, Pre-empting Russian Cyberattacks](https://www.nytimes.com/2022/04/06/us/politics/us-russia-malware-cyberattacks.html)

Politico reports that “The firms that helped document the Russian invasion of Ukraine are now finding imagery of atrocities.”

[Satellite companies join the hunt for Russian war crimes](https://www.politico.com/news/2022/04/06/satellite-russian-war-crimes-00023386)

Cloudflare writes “Following Russia’s unjustified and tragic invasion of Ukraine in late February, the world has watched closely as Russian troops attempted to advance across Ukraine, only to be resisted and repelled by the Ukrainian people. Similarly, we’ve seen a significant amount of cyber attack activity in the region. We continue to work to protect an increasing number of Ukrainian government, media, financial, and nonprofit websites, and we protected the Ukrainian top-level domain (.ua) to help keep Ukraine’s presence on the Internet operational.

At the same time, we’ve closely watched the significant and unprecedented activity on the Internet in Russia. The Russian government has taken steps to tighten its control over both the technical components and the content of the Russian Internet. For their part, the people in Russia are doing something very different. They have been adopting tools to maintain access to the global Internet, and they have been seeking out non-Russian media sources. This blog post outlines what we’ve observed.”

[What Cloudflare is doing to keep the Open Internet flowing into Russia and keep attacks from getting out](https://blog.cloudflare.com/what-cloudflare-is-doing-to-keep-the-open-internet-flowing-into-russia-and-keep-attacks-from-getting-out/)

On a related note, NPR asks “What do Russians know about what's happening in Ukraine? Well, it depends in large part on what independent media they're able to access - access the Russian government has been forcefully trying to restrict. So many Russians have been relying on VPNs - virtual private networks - that obscure their identity online and allow them to access blocked websites.”

[Some Russians are skirting website restrictions through VPNs. What are they?](https://news.wjct.org/2022-04-03/some-russians-are-skirting-website-restrictions-through-vpns-what-are-they)

Radio Free Europe reports “Western governments imposed crushing sanctions on Russia for its unprovoked attack and foreign companies began pulling out of the country, setting its economy reeling and making investments in the technology sector unattractive. Three days later, Krupnik froze his project, and on March 9 he fled to Turkey, seeing a bleak future back home.”

['A Nail In The Coffin': Tech Workers Are Fleeing Russia and The Impact Will Last For Years](https://www.rferl.org/a/russia-it-workers-brain-drain/31783558.html)

### The Evil Empire Strikes Back

TechCrunch reports “The mass exodus of IT specialists has been met with hostility from Moscow.”

[Tech workers describe detentions and interrogations as they flee Russia](https://techcrunch.com/2022/04/04/russia-tech-workers-detentions-interrogations/)

**If you are in Russian IT and want to escape the new Iron Curtain, we suggest you get the fuck out now. If not enjoy the Gulag.**

CBS reports “A group of hackers with ties to the Belarusian government broke into the Facebook accounts of Ukrainian military officials and posted videos calling on the Ukrainian army to surrender.

Meta's head of security policy, Nathaniel Gliecher, said the videos posted on the accounts of Ukrainian military officials were not seen by users and were taken down by the platform before it could be shared with others.”

[Russian-backed hackers broke into Facebook accounts of Ukrainian military officials](https://www.cbsnews.com/news/ukraine-military-officials-facebook-hackers-russia-belarus/)

The Jerusalem Post reports “China launched a massive cyber operation against the Ukrainian military and its nuclear facilities before Russia began its invasion, according to UK intelligence reports obtained by *The Times*.

The British reports were backed up by Ukraine's national security service, the SBU, which claimed China coordinated thousands of cyberattacks and hacking attempts on official Ukrainian government sites.”

[China carried out massive cyberattack operation on Ukraine - report](https://www.jpost.com/international/article-703024)

The New York Times notes:

[Bristling against the West, China rallies domestic sympathy for Russia](https://www.nytimes.com/2022/04/04/world/asia/china-russia-ukraine.html)

The Guardian reports “Putin may be ‘playing a long game’ on the cyber front, with attacks underway but not fully understood.”

[Russia’s slow cyberwar in Ukraine begins to escalate, experts say](https://www.theguardian.com/world/2022/apr/01/russia-ukraine-cyberwar)

The Associated Press reports “Though Russia is the country that invaded its neighbor Ukraine, the Kremlin’s version relentlessly warns social media users across Latin America that the U.S. is the bigger problem. “Never forget who is the real threat to the world,” reads a headline, translated here from Spanish. The article, originally posted in late February on Twitter by RT en Español, is intended for an audience half a world away from the fighting in Kyiv and Mariupol.”

[Russia aims Ukraine disinformation at Spanish speakers](https://apnews.com/article/russia-ukraine-ap-top-news-facebook-europe-media-fb3758a9a11182558976a3a4f3b121dd)

### Cybersecurity

ZDNet reports “The US Federal Government's latest attempt to create a centralized office for cybersecurity within a major agency will also be tasked with exploring economic and policy concerns within cyberspace.”

[US Bureau of Cyberspace and Digital Policy officially commences operations](https://www.zdnet.com/article/us-bureau-of-cyberspace-and-digital-policy-officially-commences-operations/)

TechRepublic has this discouraging bit of news:

[Developers do not view application security as a top priority, study finds](https://www.techrepublic.com/article/developers-do-not-view-application-security-as-a-top-priority-study-finds/)

They also have:

[5 tools to make encryption key management easier](https://www.techrepublic.com/article/5-tools-encryption-key-management/)

GitHub shows us:

[How Dependabot empowers you to keep your projects secure](https://github.blog/2022-04-06-how-dependabot-empowers-you-to-keep-your-projects-secure/)

They also have:

[Prevent the introduction of known vulnerabilities into your code](https://github.blog/2022-04-06-prevent-introduction-known-vulnerabilities-into-your-code/)

### More

The NewStack shares this from Caleb Porzion “It was at this point that he came up with the idea for Alpine.js, the minimalist framework that puts JavaScript behavior directly in your markup, which would offer some of the interactivity of Vue.js without any of the complexity.

“Alpine is the modern jQuery, that’s my vision for it,” Porzio explained in an interview. “When I started in web development, jQuery was what you did to sprinkle in stuff on your front end. Your whole front end wasn’t driven by a frontend framework, it was driven by something like Rails. I still like to write web apps that way. I’ve come full circle, I did the whole SPA thing and there’s nothing wrong with it, per se, but for a lot of use cases it’s just way too much complexity.”

[Alpine.js Brings JavaScript Interactivity without Complexity to HTML](https://thenewstack.io/alpine-js-brings-javascript-interactivity-without-complexity-to-html/)

Infoworld notes “SQLite is embedded everywhere. Will Postgres follow suit?”

[Postgres everywhere](https://www.infoworld.com/article/3655953/postgres-everywhere.html)

Docker discusses:

[Getting Started with Docker Desktop](https://www.docker.com/blog/getting-started-with-docker-desktop/)

They also have:

[CTO Chat: Overcoming the Developer Experience Gap (feat. RedMonk & Flow.io)](https://www.docker.com/blog/cto-chat-overcoming-the-developer-experience-gap-feat-redmonk-flow-io/)

VSCode writes ”The Visual Studio Code team has used this insight as the heart of their research over the years: if we can reduce time spent on overhead, like reading about environment setup, then we can increase productivity time. We have a vision where developers don't have to keep fighting the same battles over and over again. This means a consistent development setup that can handle the never-ending churn of version upgrades, configuration changes, and hardware refreshes.

But what does the path look like to get us there? Let's examine the journey to increase developer productivity that has led us from local development to container-based development, to the cloud.”

[Using Containers to move from Local to Remote Development](https://code.visualstudio.com/blogs/2022/04/04/increase-productivity-with-containers)

TechCrunch reports “At its Team ’22 conference, Atlassian announced the launch of Atlas, a new service for cross-functional team updates it previously offered as a beta under the name “Team Central.” The service is meant to be a central repository for what teams are working on — with those updates limited to a Twitter-like 280 characters.”

[Atlassian launches Atlas to improve team alignment](https://techcrunch.com/2022/04/06/atlassian-launches-atlas-to-improve-team-alignment/)

Sule-Balogun Olanrewaju Ganiu says, “This article will teach you an alternative approach to testing client APIs using Thunder Client, an open-source extension available on 
VS Code marketplace.”

[Thunder Client – An Alternative Way to Test Restful APIs](https://www.freecodecamp.org/news/thunder-client-for-vscode/)

That's it for this week. Thanks for making it to the end of another edition. I look forward to sharing next week's Symfony and PHP news with you on Friday.

Please share this post. :) Also, 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!

## Author

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

### Reuben Walker

Founder
Symfony Station