GromNaN
jerome.tamarelle.net
GromNaN
@jerome.tamarelle.net
PHP Developer MongoDB Driver & Symfony Core
https://jerome.tamarelle.net/
When chained, the ternary operator syntax ?: is hard to read. I prefer match(true) #PHP
October 22, 2025 at 8:39 AM
Reposted by GromNaN
Snagged this elusive guy thanks to @jerome.tamarelle.net
October 6, 2025 at 4:07 PM
It's always nice to see how a feature we've created is being used. This commit replaces the twig extension runtime classes with attributes, reducing the number of lines of code by 30% and cutting the number of classes in half. github.com/benjaminjona...
Update twig extensions · benjaminjonard/koillection@17c7e98
github.com
September 3, 2025 at 6:50 AM
Ryan has brought a lot to PHP, through his hard work, his always friendly manner and his vision. He's an example to many of us. He leaves us with tons of code he wrote and shared in open-source for at least 15 years, which we'll continue to develop with him in mind.
🙌 Remembering Ryan Weaver: Teacher, Core Team Member, Friend
➡️ https://symfony.com/blog/remembering-ryan-weaver-teacher-core-team-member-friend
August 28, 2025 at 9:46 PM
Reposted by GromNaN
website: "to log in, please press the notification in the mobile app"

mobile app: press notification

website: ok welcome

mobile app: "OMG SOMEONE JuST LOGGED IN, WERE U HACKED?!"
August 1, 2025 at 11:30 AM
"Down migrations are not possible for 100% of up cases
and you can therefore not rely on this feature to work. Providing this feature only adds a false sense of safety that can bite you hard." — Benjamin Eberlei

The "down" method exists in doctrine/migrations only for backward compatibility.
🌟 Why I don't use down migrations
Why I don't use down migrations
Every once in a while, someone opens a PR on one of our open source packages adding a `down` function to the migration. I usually close those PRs fast with a thank you and a message “We don’t use down migrations in our projects”. While down migrations might seem like a safety net, they're often a false comfort that potentially creates more problems than they solve. Instead of explaining this in every PR separately, let me share why we don't write down migrations and what we do instead. <!--more--> ## The untested code problem Down migrations are unique in that they're probably the least tested code in most Laravel applications. While features, APIs, and business logic will get tested in most projects, down methods tend to be written once and then forgotten. Think about it - when was the last time you ran a down migration in your test suite? Or verified that complex data transformations actually reverse correctly? Probably you don’t do this. Testing rollback scenarios is hard and often feels like preparing for something that rarely occurs. ## What about new data? The tricky thing about rolling back migrations is that data created after deployment doesn't simply disappear. When you have a busy application, users will interact very fast with your database after deploy. If you've added a new table and users have created records, rolling back means that data has nowhere to go. When you've transformed data from one format to another, the original format might be lost forever. Even seemingly simple changes like splitting a name field into first and last names become complex when you need to reverse them after users have updated their information. ## Keeping code and database in harmony Your application code expects a certain database structure, and when the database schema changes without the code changing too, things can break in unexpected ways. Models might reference columns that no longer exist, controllers could query tables that have been dropped, and validation rules might check fields that have vanished. The complexity multiplies with modern deployment strategies like container orchestration and blue-green deployments, where different parts of your system might be running different code versions. ## Go forward At Spatie, we've embraced forward-only migrations for many years now. When something needs to be reversed, we will first think carefully about the appropriate solution for the particular situation we’re in. If necessary, we’ll handcraft a new migration that moves us forward rather than trying to reverse history. ## In closing The next time you're tempted to write that down method, ask yourself: will this code ever run? Will it actually work if it does? And most importantly, wouldn't your time be better spent making sure the up migration and new code is rock solid? The choice is yours!
freek.dev
August 1, 2025 at 10:38 AM
L'appel à conférencier est ouvert pour @codeursenseine.bsky.social LA conférence tech à Rouen. Thématiques :
UX/UI
Cybersécurité
Langages
Backend
IA & Data
Cloud & DevOps
Web et Mobile
Agilité & Méthodologies
Atypique & Découverte
conference-hall.io/codeurs-en-s...
Codeurs en Seine 20 Novembre 2025 call for papers
Submit your proposal to Codeurs en Seine 20 Novembre 2025 call for papers.
conference-hall.io
August 1, 2025 at 8:52 AM
Reposted by GromNaN
This is one of the best release notes I've read this year.

github.com/PHP-CS-Fixer...

Congratulations to the release of PHP 8.4 support <3
Release v3.80.0 Alexander · PHP-CS-Fixer/PHP-CS-Fixer
Long-awaiting official support for PHP 8.4 in PHP-CS-Fixer is finally here 🥳! We know, it's long overdue, but for a reason... Let us explain a bit, for transparency and clean atmosphere around the ...
github.com
July 7, 2025 at 10:34 AM
Reposted by GromNaN
Nous sommes ravis d'accueillir la core team de Doctrine, l'ORM phare de PHP, dans nos bureaux à Paris 💫 pour leur meetup annuel 🤝

📯 www.doctrine-project.org/2025/07/01/...

#doctrine #php #symfony #oss #orm
July 2, 2025 at 9:48 AM
Reposted by GromNaN
Hey folks 👋 , I'm available to hire!

💼 Part time, ~4h/day
⏳ Happy to work remote EU/UK/US
✅ I am a software team leader, Java/PHP/Rust/C/etc
🧑‍💼 Experience in avionics/finance/insurance/education/gov

If you would like to talk more and see how I can help your team succeed, DM me and lets chat! 💬
July 1, 2025 at 10:21 AM
I love writing tech docs in Markdown. The syntax is natural to me, I don't have to click to format things. The AI tools help me.
But when it comes to collaboration, Google Docs is definitely the best. I found that you can easily import/export Markdown.
workspaceupdates.googleblog.com/2024/07/impo...
Import and export Markdown in Google Docs
What’s changing In 2022 , we introduced expanded support for composing with Markdown in Google Docs on web. Today, we’re introducing highly-...
workspaceupdates.googleblog.com
June 26, 2025 at 8:43 AM
🧟⭐⭐⭐⭐⭐🐘
June 22, 2025 at 8:09 AM
Reposted by GromNaN
"PHP, 30 years of generating strings on the server"

#php #30yearsofphp #phpverse
June 17, 2025 at 12:50 PM
Abandonnez pecl, utilisez pie pour installer vos extensions PHP. L'extension MongoDB est supportée depuis la version 1.21.0
June 17, 2025 at 11:50 AM
Reposted by GromNaN
PIE, l'installeur d'extensions PHP, a été déclaré stable ! 🎉

Découvrez son fonctionnement dans notre article : jolicode.com/blog/a-la-d...

#pie #php #extension #oss
À la découverte de PIE, l'alternative moderne à PECL pour les extensions PHP
Récemment vous avez peut-être entendu parler de PIE, un nouveau binaire pour PHP. PIE c’est le diminutif de “PHP Installer for Extensions” et c’est donc le descendant de PECL. Pourquoi PIE ?
jolicode.com
June 17, 2025 at 11:28 AM
Reposted by GromNaN
🚨 #APIPlatformCon Speaker reveal! Meet @jerome.tamarelle.net: maintainer of the PHP drivers and libraries for @mongodb.bsky.social and member of the @symfony.com Core Team. Don’t miss his talk on everything you need to know about using API Platform with MongoDB. Join us: api-platform.com/con/2025
June 3, 2025 at 9:49 AM
Have you ever used XML for Symfony config or routing? It's set to be deprecated in 7.4. If that's a concern for you, it's the time to speak up.
XML adds extra overhead when creating a Configuration class and an .xsd schema. Good to see it being phased out. github.com/symfony/symf...
[RFC] Deprecate and remove support for semantic XML configuration · Issue #60200 · symfony/symfony
Description Maintaining https://github.com/symfony/symfony/blob/7.3/src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd is not easy. And I never saw a project using XML to co...
github.com
May 28, 2025 at 9:30 AM
Reposted by GromNaN
Les tickets au tarif Les Yeux Fermés sont sold-out pour le Forum PHP 2025 !
La billetterie est passée au tarif de croisière : pas d'hésitation, rejoignez la communauté PHP les 9-10 octobre à Disneyland Paris pour les 30 ans de PHP et les 25 ans de l'AFUP !
event.afup.org
May 19, 2025 at 8:50 AM
Just when we thought the #Symfony Dependency Injection component was feature complete, we've opened a new chapter with the introduction of resource definitions. Classes that are not service can be tagged according to the interfaces or attributes they use, which can then be injected into services.
May 16, 2025 at 10:44 AM
Reposted by GromNaN
FrankenPHP is now officially supported by the PHP Foundation, the project repository will be moved to the PHP organization on GitHub, and the collaboration between the PHP project, the Caddy web server, and @les-tilleuls.coop will intensify even further!

les-tilleuls.coop/en/blog/fran...
FrankenPHP is now officially supported by the PHP Foundation | Les-Tilleuls.coop
The FrankenPHP project is now officially supported by the PHP Foundation to simplifiy the PHP development experience.
les-tilleuls.coop
May 15, 2025 at 9:17 AM
When one say: "I physically removed the data from the disk!" This is what I have in mind.
May 9, 2025 at 1:12 PM
Reposted by GromNaN
Reposted by GromNaN
This Wednesday @jerome.tamarelle.net and I will be participating in an AMA to celebrate the 2.0 release of MongoDB's PHP driver: www.youtube.com/live/caiVFee...
AMA with MongoDB's PHP Engineering team
✅ Try MongoDB 8.0 → https://mdb.link/caiVFee9jhU ✅ Sign-up for a free cluster → https://mdb.link/caiVFee9jhU-try - In this episode we'll talk about: - 2.0 release for MongoDB PHP Extension & Library ...
www.youtube.com
May 5, 2025 at 6:48 AM
"This new syntax makes your extensions cleaner, faster to write, and easier to maintain while keeping the full power of the Twig integration." Well summarized! #php
🚀 New in Symfony 7.3: Twig Extension Attributes
➡️ https://symfony.com/blog/new-in-symfony-7-3-twig-extension-attributes
April 28, 2025 at 8:55 AM
Reposted by GromNaN
🚀 New in Symfony 7.3: Twig Extension Attributes
➡️ https://symfony.com/blog/new-in-symfony-7-3-twig-extension-attributes
April 28, 2025 at 7:35 AM