PHP Fibers: The Game-Changer That Makes Async Programming Feel Like Magic. #PHP
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom

PHP Fibers: The Game-Changer That Makes Async Programming Feel Like Magic. #PHP
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
PHP Fibers: The Game-Changer That Makes Async Programming Feel Like Magic. #PHP
https://www.phparch.com/2025/08/php-fibers-the-game-changer-that-makes-async-programming-feel-like-magic/
Lost the morning trying to make a #FilamentPHP Alert component.
Yes, the framework doesn't have that. Believe it or not.
Worse, the Color management is between asanine and undocumented. Basically, don't attempt and do everything as harcoded with Tailwind CSS as possible.
PHP 8.5.0 Beta 1 available for testing. #PHP
https://www.php.net/index.php?utm_source=flipboard&utm_medium=activitypub
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
Defer for PHP (like in Go)
Never forget to close a file, release a lock, or roll back a transaction again. defer() runs your cleanup exactly when the function returns — even on early return or exceptions.
composer require tito10047/php-defer
Repo: https://github.com/tito10047/php-defer
#PHP #Go #defer #CleanCode #Symfony
PHP 8.5.0 Beta 1 is available for testing!
- #[\Override] for properties
- Nearly all 8.5 deprecations, you can start future proofing your code now!
- Bug fixes thanks to your testing and feedback
… and more!
Do: Test your projects!
Don't: Run it in production. It's not fully ready yet.
Y recuerden chicos:
Cuando actualicen sus servidores de Debian 12 a Debian 13 (y en cualquier upgrade grande), apaguen el #Apache antes de actualizar, si no puede pasar que el servidor web siga activo mientras se descarga el módulo #php y se cambia por una nueva versión.
Durante ese tiempo, todo el código PHP del servidor queda expuesto como si fuera TXT, y sí, podemos tener contraseñas ahí dentro.
Generation of four sequences decomposed into weight × level + jump (log(weight), log(level), log(jump)) - three.js animation:
1: The natural numbers (A000027) https://decompwlj.com/3DgraphGen/Natural_numbers.html
One day, one decomposition
A002145: Primes of the form 4*k + 3
3D graph, threejs - webGL https://decompwlj.com/3Dgraph/A002145.html
3D graph Gen, threejs animation https://decompwlj.com/3DgraphGen/A002145.html
2D graph, first 500 terms https://decompwlj.com/2Dgraph500terms/A002145.html
Kann jemand mit ein wenig Ahnung von Wordpress und PHP evtl. behilflich sein?
Auf https://zeithueter.de läuft ein Wordpress-Blog, das mehrere Jahre nicht angetastet wurde.
Durch ein PHP-Update auf dem Server funktioniert weder das Frontend noch das Backend von Wordpress (siehe Screenshot).
#Wordpress #PHP #FediHilft #Hilfsgesuch
Using PGBouncer to improve PHP applications running in the cloud. #PHP
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
Using PGBouncer to improve PHP applications running in the cloud. #PHP
https://www.liip.ch/en/blog/using-pgbouncer-to-improve-php-applications-running-in-the-cloud
Give me true async for PHP 9.0
You should really try to write some #php 5.3 code… trust me, it ain’t fun
in my case, it’s not by choice but current legacy project needs some adjustments
Yet… IMHO this is the best way to realise how far we have come and how blessed we are to have @thephpf, our #phpamily community and all the good minded and hard working #opensource #developers that made this language ready, and continue to do so, for the 50 years to come
Tremendous gratitude
My criticism about #PHP Fibers after two years of implementation:
You will still use #FrankenPHP.
I'm still wishing for PHP to handle async IO like #Golang does, especially when you want a database query or a file processing that will take its sweet time while you do something else.
NEXT WEEK | Join us at 1 P.M. EDT on Thursday, August 21, for a webinar exploring how to manage mission-critical web app migrations, including roadblocks to avoid and strategies for success.
Can’t make the live broadcast? No problem. Register now, and we will send an on-demand recording after the session.
Save your seat >> https://ter.li/7x0o5e
In the Shopware HubCast hosted by Sander Mangel and Dennis Höting, Sander talks with our @beberlei about:
- Shopware performance pitfalls & fixes
- Profiling real-world shops
- How open source contributions can really move the needle
Watch it here: https://www.youtube.com/watch?v=Qh5vQPNklOs
Periodic reminder Stop using boolean as options flags in #PHP use Enum (Backed or Not that's not the point) instead. Boolean flags are hard to read and to remember and they often lead to tricky bugs or at best a required trip to the API documentation if it exists (defaulting to scanning the codebase for the method definition), Enum are explicit and readable and offer granularity instead of a simple yes/no answer
I wrote about how we set up pgbouncer in a docker container to improve how we run #php in the cloud: https://www.liip.ch/en/blog/using-pgbouncer-to-improve-php-applications-running-in-the-cloud
(warning: the post got very technical. my main motivation was that I will be able to find this post again to see what I did when I need to set up pgbouncer in another project...)