Once again processing 11 million rows, now in seconds
https://stitcher.io/blog/11-million-rows-in-seconds
https://redd.it/1qq6zwj
@r_php
https://stitcher.io/blog/11-million-rows-in-seconds
https://redd.it/1qq6zwj
@r_php
stitcher.io
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
Once again processing 11 million rows, now in seconds
https://stitcher.io/blog/11-million-rows-in-seconds
https://redd.it/1qq6xqk
@r_php
https://stitcher.io/blog/11-million-rows-in-seconds
https://redd.it/1qq6xqk
@r_php
stitcher.io
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
Looking for sample web projects (HTML, CSS, JS, PHP, Symfony, Bootstrap)
I’m a student currently learning full-stack web development and I’m looking for example projects built with HTML, CSS, JavaScript, PHP (Symfony) and Bootstrap.
If you have an old project, demo, GitHub repo, or practice project you don’t mind sharing, I’d really appreciate it. I’m using them only for learning and understanding structure, best practices, and architecture.
https://redd.it/1qqcsxi
@r_php
I’m a student currently learning full-stack web development and I’m looking for example projects built with HTML, CSS, JavaScript, PHP (Symfony) and Bootstrap.
If you have an old project, demo, GitHub repo, or practice project you don’t mind sharing, I’d really appreciate it. I’m using them only for learning and understanding structure, best practices, and architecture.
https://redd.it/1qqcsxi
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Best OAuth2 (client) bundle for establishing "clientcredentials" session
To integrate a third-party API with my application, I'll need to establish a session using the OAuth2 "client\credentials" flow. The most popular packages appear to be the "knpu" or "benjaminfavre" bundles.
Based on the readme for each, the "benjaminfavre" bundle appears to be easier to implement, while the "knpu" bundle seems to be more flexible.
All things being equal, I'm leaning toward the "benjaminfavre" bundle, but would be curious to know if anyone has recommendations or concerns?
https://redd.it/1qqj5bj
@r_php
To integrate a third-party API with my application, I'll need to establish a session using the OAuth2 "client\credentials" flow. The most popular packages appear to be the "knpu" or "benjaminfavre" bundles.
Based on the readme for each, the "benjaminfavre" bundle appears to be easier to implement, while the "knpu" bundle seems to be more flexible.
All things being equal, I'm leaning toward the "benjaminfavre" bundle, but would be curious to know if anyone has recommendations or concerns?
https://redd.it/1qqj5bj
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Hardening Symfony: Recent Security Improvements
https://symfony.com/blog/hardening-symfony-recent-security-improvements?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1qr1895
@r_php
https://symfony.com/blog/hardening-symfony-recent-security-improvements?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1qr1895
@r_php
Symfony
Hardening Symfony: Recent Security Improvements (Symfony Blog)
A quick look at recent security hardening improvements that make Symfony safer by default.
Laravel Live Japan – friendly, community-focused Laravel event in Tokyo 🇯🇵
Hey r/laravel
Josh here. 👋 If you don't know who I am, I work in DevRel at Laravel.
I’ll be heading to Laravel Live Japan in Tokyo this May, and I’m really hoping to meet and connect with folks from the Laravel community in Japan and anyone traveling in.
Laravel has such a huge community around the world, so I’m especially excited to see what people are building in Japan and across the wider APAC region.
If you’ve been to a Laravel Live before, the vibe is intentionally more intimate and community-driven than a massive conference. Lots of good conversations and time to actually meet people. I had the privilege of going to Laravel Live UK last year and it was truly one of my favorite times. I met so many incredible people.
Let me know if you’re coming or thinking about it! Happy to answer any questions.
laravellive.jp
https://redd.it/1qqi48a
@r_php
Hey r/laravel
Josh here. 👋 If you don't know who I am, I work in DevRel at Laravel.
I’ll be heading to Laravel Live Japan in Tokyo this May, and I’m really hoping to meet and connect with folks from the Laravel community in Japan and anyone traveling in.
Laravel has such a huge community around the world, so I’m especially excited to see what people are building in Japan and across the wider APAC region.
If you’ve been to a Laravel Live before, the vibe is intentionally more intimate and community-driven than a massive conference. Lots of good conversations and time to actually meet people. I had the privilege of going to Laravel Live UK last year and it was truly one of my favorite times. I met so many incredible people.
Let me know if you’re coming or thinking about it! Happy to answer any questions.
laravellive.jp
https://redd.it/1qqi48a
@r_php
Laravel Live Japan
Join us for Laravel Live Japan, happening May 26-27, 2026 at Tachikawa Stage Garden, Tokyo. Discover what's next for the Laravel ecosystem and connect with a passionate community of developers.
Building a Flexible Reporting System - Laravel In Practice EP3
https://youtu.be/Pa7Gi9raRPk?si=P0XJfrbSPFqVDiZ3
https://redd.it/1qqhld0
@r_php
https://youtu.be/Pa7Gi9raRPk?si=P0XJfrbSPFqVDiZ3
https://redd.it/1qqhld0
@r_php
YouTube
Building a Flexible Reporting System - Laravel In Practice EP3
In this episode, Harris from Laravel News shows you how to:
- Extend query scopes into a complete reporting system
- Add methods for customer insights and daily trends to your order collection
- Implement Top Customers and Daily Breakdown functions
…
- Extend query scopes into a complete reporting system
- Add methods for customer insights and daily trends to your order collection
- Implement Top Customers and Daily Breakdown functions
…
Cycle-accurate NES emulator written in PHP
https://github.com/oliverearl/nes-php-glfw
https://redd.it/1qpg36p
@r_php
https://github.com/oliverearl/nes-php-glfw
https://redd.it/1qpg36p
@r_php
GitHub
GitHub - oliverearl/nes-php-glfw: An NES emulator written in PHP 8.5 using the OpenGL GLFW extension.
An NES emulator written in PHP 8.5 using the OpenGL GLFW extension. - oliverearl/nes-php-glfw
Secure the database credentials in Jaxon DbAdmin with Infisical
Hi,
I just published a blog post about how the credentials of the databases managed with Jaxon DbAdmin can be securely stored in the Infisical server.
I've used Infisical but any other secret management service can be used instead.
https://www.jaxon-php.org/blog/2026/01/secure-the-jaxon-dbadmin-database-credentials-with-infisical.html
https://redd.it/1qr7n3f
@r_php
Hi,
I just published a blog post about how the credentials of the databases managed with Jaxon DbAdmin can be securely stored in the Infisical server.
I've used Infisical but any other secret management service can be used instead.
https://www.jaxon-php.org/blog/2026/01/secure-the-jaxon-dbadmin-database-credentials-with-infisical.html
https://redd.it/1qr7n3f
@r_php
www.jaxon-php.org
Secure the Jaxon DbAdmin database credentials with Infisical | Jaxon
Jaxon is an open source PHP library for easily creating Ajax web applications. It's a fork of the Xajax library.
Live walkthrough: Skills in Laravel Boost 2.0
Hey all!
I’m doing a live stream tomorrow (1/29) at 11 AM ET with Pushpak Chhajed on Laravel Boost 2.0.
We’ll be walking through:
* what changed in Boost 2.0 and why
* what Skills are and how they give LLMs better context in Laravel apps
* how Skills and guidelines work together in real workflows
If you have questions about Boost or the updates, feel free to drop them here ahead of time or ask in chat during the stream!
Stream link:
[https://www.youtube.com/watch?v=NWQjC20rWLg](https://www.youtube.com/watch?v=NWQjC20rWLg)
https://redd.it/1qpyil8
@r_php
Hey all!
I’m doing a live stream tomorrow (1/29) at 11 AM ET with Pushpak Chhajed on Laravel Boost 2.0.
We’ll be walking through:
* what changed in Boost 2.0 and why
* what Skills are and how they give LLMs better context in Laravel apps
* how Skills and guidelines work together in real workflows
If you have questions about Boost or the updates, feel free to drop them here ahead of time or ask in chat during the stream!
Stream link:
[https://www.youtube.com/watch?v=NWQjC20rWLg](https://www.youtube.com/watch?v=NWQjC20rWLg)
https://redd.it/1qpyil8
@r_php
YouTube
Laravel Boost 2.0: Building and Shipping with Boost w/ Pushpak Chhajed
Laravel Boost improves how teams use AI when building Laravel applications by providing structure and context that helps AI tools generate better, more accurate Laravel code.
Join Leah and Pushpak Chhajed for a live walkthrough of Laravel Boost, an overview…
Join Leah and Pushpak Chhajed for a live walkthrough of Laravel Boost, an overview…
Non AI things
Is there anything out there that isn't related to AI these days?
I have been building with Laravel and other tooling for 9 years but lately everything is related to AI.
https://redd.it/1qpoowj
@r_php
Is there anything out there that isn't related to AI these days?
I have been building with Laravel and other tooling for 9 years but lately everything is related to AI.
https://redd.it/1qpoowj
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Laravel Cloud does not support static asset caching
According to Laravel Cloud's documentation automatically applies edge caching via CloudFlare and that:
>Laravel Cloud uses a long cache lifespan to ensure your static assets are served at the edge as much as possible.
However, no matter what I did, Google Lighthouse and Pingdom would always complain that none of my static assets had any TTL set (either via `Cache-Control` or `Expires`) and I could verify their absence in the browser myself.
At first I thought it was the existence of the `Set-Cookie` header (which Laravel Cloud states will be block caching) however this was set via CloudFlare was outside of my control.
Today I finally got confirmation from the Laravel Cloud team that their documentation is wrong and that there's no TTL set at all.
https://preview.redd.it/w1hy28hjsigg1.png?width=848&format=png&auto=webp&s=20f74bed36be3a1c60086b179461853118f8925a
I trust they're working on a fix, but I also needed to share my frustration at the time I've wasted trying to fix an issue (that is affecting my SEO and user experience) that was outside of my control.
If you're in a similar boat, or are just trusting that Laravel Cloud is taking care of your asset caching for you, now you know.
https://preview.redd.it/5ig9ph6hsigg1.png?width=1422&format=png&auto=webp&s=43598b8b07edeff82f2f8658076fa2634f3d4979
(Note: This doesn't affect static assets like images that are stored in a bucket. You will manually need to set those headers yourself.)
https://redd.it/1qrbnoi
@r_php
According to Laravel Cloud's documentation automatically applies edge caching via CloudFlare and that:
>Laravel Cloud uses a long cache lifespan to ensure your static assets are served at the edge as much as possible.
However, no matter what I did, Google Lighthouse and Pingdom would always complain that none of my static assets had any TTL set (either via `Cache-Control` or `Expires`) and I could verify their absence in the browser myself.
At first I thought it was the existence of the `Set-Cookie` header (which Laravel Cloud states will be block caching) however this was set via CloudFlare was outside of my control.
Today I finally got confirmation from the Laravel Cloud team that their documentation is wrong and that there's no TTL set at all.
https://preview.redd.it/w1hy28hjsigg1.png?width=848&format=png&auto=webp&s=20f74bed36be3a1c60086b179461853118f8925a
I trust they're working on a fix, but I also needed to share my frustration at the time I've wasted trying to fix an issue (that is affecting my SEO and user experience) that was outside of my control.
If you're in a similar boat, or are just trusting that Laravel Cloud is taking care of your asset caching for you, now you know.
https://preview.redd.it/5ig9ph6hsigg1.png?width=1422&format=png&auto=webp&s=43598b8b07edeff82f2f8658076fa2634f3d4979
(Note: This doesn't affect static assets like images that are stored in a bucket. You will manually need to set those headers yourself.)
https://redd.it/1qrbnoi
@r_php
Laravel Cloud
Laravel Cloud Network - Laravel Cloud
I created an interactive PHP function reference where you can browse, learn, and execute PHP functions live without any setup.
https://8gwifi.org/tutorials/php-functions/
https://redd.it/1qpo5hj
@r_php
https://8gwifi.org/tutorials/php-functions/
https://redd.it/1qpo5hj
@r_php
8gwifi.org
PHP Functions Reference - Run & Test PHP Functions Online | 8gwifi.org
Interactive PHP functions reference. Browse, learn, and execute 50+ PHP functions online. String, array, math, date, JSON functions with live examples.
Preprocessing php code with C preprocessor?
I have some php code, a SQLite3 client module, that has a mess of semver conditional logic in it for using more recent features (upsert, NOROWID, that sort of thing), because I have a few users with legacy server configs.
I’m thinking of using the venerable C preprocessor ( https://www.man7.org/linux/man-pages/man1/cpp.1.html ) \#ifdef feature set to let me make production versions of my code without the conditional logic,:to make it smaller and faster for most of my users. It seems wise to do this without just hacking out the legacy code.
This seems to work. I’ll need some CI/CD and installation stuff to deploy it.
**Are there any pitfalls to this that I might be missing** ?
**Is there a better way to do this** ?
I’m grateful for any advice.
https://redd.it/1qri7te
@r_php
I have some php code, a SQLite3 client module, that has a mess of semver conditional logic in it for using more recent features (upsert, NOROWID, that sort of thing), because I have a few users with legacy server configs.
I’m thinking of using the venerable C preprocessor ( https://www.man7.org/linux/man-pages/man1/cpp.1.html ) \#ifdef feature set to let me make production versions of my code without the conditional logic,:to make it smaller and faster for most of my users. It seems wise to do this without just hacking out the legacy code.
This seems to work. I’ll need some CI/CD and installation stuff to deploy it.
**Are there any pitfalls to this that I might be missing** ?
**Is there a better way to do this** ?
I’m grateful for any advice.
https://redd.it/1qri7te
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Desktop applications using PHP
Hello :)
So Wednesday I was bored in a meeting and I had an idea. PHP can already create desktop applications, but only cli.
Since we can use stdin and stdout, what if there was a middleware that could use those and communicate with a real desktop window.
I did some digging and prototyping, learned some Rust, raged on WSL about WebKitGTK and now I want to share the result with you: https://codeberg.org/Elvandar/toccata
It is clearly a proof of concept but I am curious to hear your thoughts
https://redd.it/1qsgk82
@r_php
Hello :)
So Wednesday I was bored in a meeting and I had an idea. PHP can already create desktop applications, but only cli.
Since we can use stdin and stdout, what if there was a middleware that could use those and communicate with a real desktop window.
I did some digging and prototyping, learned some Rust, raged on WSL about WebKitGTK and now I want to share the result with you: https://codeberg.org/Elvandar/toccata
It is clearly a proof of concept but I am curious to hear your thoughts
https://redd.it/1qsgk82
@r_php
Codeberg.org
toccata
Symfony's Service Container just got a massive developer experience upgrade thanks to PHP Attributes. No more complex YAML configuration to remember —just pure, clean PHP code.
https://tuhinbepari.medium.com/mastering-symfony-service-container-modern-php-attributes-edition-74d7113614c0
https://redd.it/1qsjd72
@r_php
https://tuhinbepari.medium.com/mastering-symfony-service-container-modern-php-attributes-edition-74d7113614c0
https://redd.it/1qsjd72
@r_php
Medium
Mastering Symfony Service Container: Modern PHP Attributes Edition
From YAML Chaos to Attribute Clarity
Libretto: A Composer-compatible package manager written in Rust - 3-10x faster installs
Hey r/PHP!
I've been working on Libretto, a high-performance Composer-compatible package manager written in Rust. The goal is to be a drop-in replacement for Composer with significantly improved performance.
GitHub: https://github.com/libretto-pm/libretto
BENCHMARK RESULTS (Laravel 12 project, 162 packages)
Tested on AMD Ryzen 9 7950X, 32GB RAM, Linux 6.18
Cold Cache Install (no cache, fresh install):
Composer 2.9.3: \~10 seconds average
Libretto 0.1.0: \~3.3 seconds average
Result: \~3x faster
Warm Cache Install (cache populated, vendor deleted):
Composer 2.9.3: \~1.5 seconds average
Libretto 0.1.0: \~0.4 seconds average
Result: \~3.8x faster
dump-autoload:
Composer 2.9.3: \~150ms
Libretto 0.1.0: \~7.5ms
Result: \~20x faster
dump-autoload --optimize:
Composer 2.9.3: \~155ms
Libretto 0.1.0: \~17ms
Result: \~9x faster
HOW IT ACHIEVES THIS PERFORMANCE
\- HTTP/2 Multiplexing: Multiple parallel requests over single TCP connection
\- Adaptive Concurrency: Up to 128 concurrent downloads vs Composer's fixed 12
\- Content-Addressable Storage: pnpm-style global cache with hardlinks
\- SIMD-accelerated JSON parsing: Using sonic-rs
\- Zero-copy deserialization: rkyv for cached data
\- Rust's native performance: No interpreter overhead
CURRENT LIMITATIONS (honest assessment)
\- Alpha quality, not production ready yet
\- Some Composer commands may not work identically
\- Limited Composer plugin compatibility
\- Some post-install noscripts may behave differently
\- Complex version constraints or private repos may have issues
WHAT WORKS WELL
\- install / update / require / remove (core dependency management)
\- dump-autoload (extremely fast)
\- validate / audit
\- PSR-4/PSR-0/classmap autoloading
\- Packagist integration
\- composer.lock compatibility
WHY BUILD THIS?
As projects grow larger (50+ dependencies), Composer's install times become noticeable, especially in CI/CD pipelines. The PHP ecosystem deserves tooling as fast as what JavaScript (pnpm), Python (uv), and Rust (cargo) developers enjoy.
LOOKING FOR FEEDBACK
\- Would you try this in development environments?
\- What features are must-haves before you'd consider it?
\- Any specific pain points with Composer you'd like addressed?
The project is open source (MIT license). PRs and issues welcome!
https://redd.it/1qsqsn5
@r_php
Hey r/PHP!
I've been working on Libretto, a high-performance Composer-compatible package manager written in Rust. The goal is to be a drop-in replacement for Composer with significantly improved performance.
GitHub: https://github.com/libretto-pm/libretto
BENCHMARK RESULTS (Laravel 12 project, 162 packages)
Tested on AMD Ryzen 9 7950X, 32GB RAM, Linux 6.18
Cold Cache Install (no cache, fresh install):
Composer 2.9.3: \~10 seconds average
Libretto 0.1.0: \~3.3 seconds average
Result: \~3x faster
Warm Cache Install (cache populated, vendor deleted):
Composer 2.9.3: \~1.5 seconds average
Libretto 0.1.0: \~0.4 seconds average
Result: \~3.8x faster
dump-autoload:
Composer 2.9.3: \~150ms
Libretto 0.1.0: \~7.5ms
Result: \~20x faster
dump-autoload --optimize:
Composer 2.9.3: \~155ms
Libretto 0.1.0: \~17ms
Result: \~9x faster
HOW IT ACHIEVES THIS PERFORMANCE
\- HTTP/2 Multiplexing: Multiple parallel requests over single TCP connection
\- Adaptive Concurrency: Up to 128 concurrent downloads vs Composer's fixed 12
\- Content-Addressable Storage: pnpm-style global cache with hardlinks
\- SIMD-accelerated JSON parsing: Using sonic-rs
\- Zero-copy deserialization: rkyv for cached data
\- Rust's native performance: No interpreter overhead
CURRENT LIMITATIONS (honest assessment)
\- Alpha quality, not production ready yet
\- Some Composer commands may not work identically
\- Limited Composer plugin compatibility
\- Some post-install noscripts may behave differently
\- Complex version constraints or private repos may have issues
WHAT WORKS WELL
\- install / update / require / remove (core dependency management)
\- dump-autoload (extremely fast)
\- validate / audit
\- PSR-4/PSR-0/classmap autoloading
\- Packagist integration
\- composer.lock compatibility
WHY BUILD THIS?
As projects grow larger (50+ dependencies), Composer's install times become noticeable, especially in CI/CD pipelines. The PHP ecosystem deserves tooling as fast as what JavaScript (pnpm), Python (uv), and Rust (cargo) developers enjoy.
LOOKING FOR FEEDBACK
\- Would you try this in development environments?
\- What features are must-haves before you'd consider it?
\- Any specific pain points with Composer you'd like addressed?
The project is open source (MIT license). PRs and issues welcome!
https://redd.it/1qsqsn5
@r_php
GitHub
GitHub - libretto-pm/libretto: Ultra-high-performance Composer-compatible dependency manager written in Rust
Ultra-high-performance Composer-compatible dependency manager written in Rust - libretto-pm/libretto
How would you feel about native typed arrays in PHP today? (e.g., string, UserClass, UserEnum, etc...)
Question: How would you feel about PHP adding native typed arrays like string/int so we can enforce element types at runtime without relying on PHPDoc + static analyzers? It would add explicitness to function signatures and make APIs cleaner than repeating array plus manual validation everywhere.
What are the downsides to something like this?
https://redd.it/1qstrzl
@r_php
Question: How would you feel about PHP adding native typed arrays like string/int so we can enforce element types at runtime without relying on PHPDoc + static analyzers? It would add explicitness to function signatures and make APIs cleaner than repeating array plus manual validation everywhere.
What are the downsides to something like this?
https://redd.it/1qstrzl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
A Week of Symfony #996 (January 26 – February 1, 2026)
https://symfony.com/blog/a-week-of-symfony-996-january-26-february-1-2026?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1qsvfth
@r_php
https://symfony.com/blog/a-week-of-symfony-996-january-26-february-1-2026?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1qsvfth
@r_php
Symfony
A Week of Symfony #996 (January 26 – February 1, 2026) (Symfony Blog)
This week, development activity focused on adding new features to the upcoming Symfony 8.1 version. Meanwhile, we published 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5 versions to address a potential sec…