Vibe coding Enterprise PHP Applications
https://medium.com/@dariuszgafka/vibe-coding-enterprise-php-applications-5a937cef93b9
https://redd.it/1qd0456
@r_php
https://medium.com/@dariuszgafka/vibe-coding-enterprise-php-applications-5a937cef93b9
https://redd.it/1qd0456
@r_php
Medium
Vibe coding Enterprise PHP Applications
Most vibe-coded apps are architectural time bombs. But what if the framework guided the AI toward enterprise patterns by default?
Laravel Community Suspended on X
I just noticed that Laravel’s official X community was suspended. At first, I thought this was something wrong on my end, but it seems to be a global suspension. I’m not very into social media, but X and Reddit official communities are my favourites and the ones I’m most engaged with. I don't know the reason it had been decent to me, this feels like it could have a quite negative effect on Laravel itself.
https://redd.it/1qd9wg6
@r_php
I just noticed that Laravel’s official X community was suspended. At first, I thought this was something wrong on my end, but it seems to be a global suspension. I’m not very into social media, but X and Reddit official communities are my favourites and the ones I’m most engaged with. I don't know the reason it had been decent to me, this feels like it could have a quite negative effect on Laravel itself.
https://redd.it/1qd9wg6
@r_php
Current state of end to end testing frameworks for a vanilla PHP codebase
I'm currently upgrading a legacy vanilla php 5 codebase to PHP 8 and refactoring the structure of the code around more of a MVC pattern (rather than the pure functional approach it originally had). With this, there is a lot of code being moved around and I'd like to create some tests to ensure certain functionality appears to work.
What is the most common/most used e2e testing framework for PHP applications these days? Playwright? Codeception? Selenium? Others?
https://redd.it/1qdavsi
@r_php
I'm currently upgrading a legacy vanilla php 5 codebase to PHP 8 and refactoring the structure of the code around more of a MVC pattern (rather than the pure functional approach it originally had). With this, there is a lot of code being moved around and I'd like to create some tests to ensure certain functionality appears to work.
What is the most common/most used e2e testing framework for PHP applications these days? Playwright? Codeception? Selenium? Others?
https://redd.it/1qdavsi
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Running a PHP web cluster? Try TQCache, a Memcache compatible storage for PHP sessions (faster than Redis)
https://github.com/mevdschee/tqcache
https://redd.it/1qdcr9i
@r_php
https://github.com/mevdschee/tqcache
https://redd.it/1qdcr9i
@r_php
GitHub
GitHub - mevdschee/tqcache: High-performance Memcache compatible persistent caching system implemented in Go
High-performance Memcache compatible persistent caching system implemented in Go - GitHub - mevdschee/tqcache: High-performance Memcache compatible persistent caching system implemented in Go
Custom Collection Methods - Laravel In Practice EP1
https://youtu.be/ZiU1YTZP_g0
https://redd.it/1qdbr8e
@r_php
https://youtu.be/ZiU1YTZP_g0
https://redd.it/1qdbr8e
@r_php
YouTube
Custom Collection Methods - Laravel In Practice EP1
In this episode, Harris from Laravel News shows you exactly how to:
- Create custom collection classes for business logic
- Use Laravel 12's CollectedBy attribute
- Transform complex calculations into simple, chainable methods
- Make your code readable like…
- Create custom collection classes for business logic
- Use Laravel 12's CollectedBy attribute
- Transform complex calculations into simple, chainable methods
- Make your code readable like…
A free Shift to configure "Fast Laravel"
After implementing the strategies on a few different Laravel projects, I got tired of copy/pasting a bunch of snippets and files.
I figured I'd automate the tedium with a Shift... So, allow me to introduce the "Fast Laravel" Shift.
This free Shift configures a new, separate
These strategies (and more) are demonstrated in my "Fast Laravel" video course. If you want to learn more about the course and benefits of caching, there was a good Reddit discussion earlier this month.
https://redd.it/1qdiyb5
@r_php
After implementing the strategies on a few different Laravel projects, I got tired of copy/pasting a bunch of snippets and files.
I figured I'd automate the tedium with a Shift... So, allow me to introduce the "Fast Laravel" Shift.
This free Shift configures a new, separate
static middleware group (discussed in this Laravel News article) and adds two custom middleware for page caching.These strategies (and more) are demonstrated in my "Fast Laravel" video course. If you want to learn more about the course and benefits of caching, there was a good Reddit discussion earlier this month.
https://redd.it/1qdiyb5
@r_php
Laravelshift
Fast Laravel - Configure your Laravel app for caching
The "Fast Laravel" Shift configures your Laravel application for caching responses with a new, separate middleware group.
PHP Async Multitask Process lib v1.0.7 version released
https://github.com/terremoth/php-async
https://redd.it/1qdj1hn
@r_php
https://github.com/terremoth/php-async
https://redd.it/1qdj1hn
@r_php
GitHub
GitHub - terremoth/php-async: Async and Parallel Processing with PHP with no threads or reactive libs
Async and Parallel Processing with PHP with no threads or reactive libs - terremoth/php-async
Convert vardump output to PHPStan array shapes - Hell2Shape
Hi folks! Made a CLI tool that converts var\dump output into PHPStan type annotations. Check it out: https://github.com/Feolius/hell2shape
There's also a web version, if you want to try it without installing anything (see repo docs). Works locally in your browser without sending any data to server (thanks to php-wasm).
Useful when you need to type those messy arrays and stdClass objects, but can't be bothered to do it by hand. It's not designed to be perfect, but it provides a solid baseline for manual refinement.
Feedbacks welcome!
https://redd.it/1qdlox5
@r_php
Hi folks! Made a CLI tool that converts var\dump output into PHPStan type annotations. Check it out: https://github.com/Feolius/hell2shape
There's also a web version, if you want to try it without installing anything (see repo docs). Works locally in your browser without sending any data to server (thanks to php-wasm).
Useful when you need to type those messy arrays and stdClass objects, but can't be bothered to do it by hand. It's not designed to be perfect, but it provides a solid baseline for manual refinement.
Feedbacks welcome!
https://redd.it/1qdlox5
@r_php
GitHub
GitHub - Feolius/hell2shape: PHP type annotations from var_dump output
PHP type annotations from var_dump output. Contribute to Feolius/hell2shape development by creating an account on GitHub.
AI generated content posts
A bit of a meta post, but /u/brendt_gd, could we please get an "AI" flair that must be added to every post that predominantly showcases AI generated content?
We get so many of these posts lately and it's just stupid. I haven't signed up to drown in AI slop. If the posters can't bother to put in any effort of their own, why would I want to waste my time with it? It's taking away from posts with actual substance.
For what it's worth, I'm personally in favour of banning slop posts under "low effort" content, but with a flair people could choose if they want to see that garbage.
https://redd.it/1qdrv9c
@r_php
A bit of a meta post, but /u/brendt_gd, could we please get an "AI" flair that must be added to every post that predominantly showcases AI generated content?
We get so many of these posts lately and it's just stupid. I haven't signed up to drown in AI slop. If the posters can't bother to put in any effort of their own, why would I want to waste my time with it? It's taking away from posts with actual substance.
For what it's worth, I'm personally in favour of banning slop posts under "low effort" content, but with a flair people could choose if they want to see that garbage.
https://redd.it/1qdrv9c
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Coupled vs Decoupled
What’s your approach if you’re a solo dev and you’re to build a small to medium web app.
Will you go full Laravel + blade (Coupled)?
OR
Do you prefer decoupling the backend and frontend…and use JS Frameworks (Decoupled)?
https://redd.it/1qdvr1t
@r_php
What’s your approach if you’re a solo dev and you’re to build a small to medium web app.
Will you go full Laravel + blade (Coupled)?
OR
Do you prefer decoupling the backend and frontend…and use JS Frameworks (Decoupled)?
https://redd.it/1qdvr1t
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Simplicity Matters
https://cosmastech.com/2026/01/16/simplicity-matters.html
https://redd.it/1qe3jiz
@r_php
https://cosmastech.com/2026/01/16/simplicity-matters.html
https://redd.it/1qe3jiz
@r_php
cosmastech
Simplicity Matters
Simplicity matters. It’s important for humans and our tiny brains. It’s important for AI Agents with their tiny context windows. It’s important for businesses that are fighting and clawing for market share as competitors clone their product in a span of months.
Simplicity Matters
https://cosmastech.com/2026/01/16/simplicity-matters.html
https://redd.it/1qe3die
@r_php
https://cosmastech.com/2026/01/16/simplicity-matters.html
https://redd.it/1qe3die
@r_php
cosmastech
Simplicity Matters
Simplicity matters. It’s important for humans and our tiny brains. It’s important for AI Agents with their tiny context windows. It’s important for businesses that are fighting and clawing for market share as competitors clone their product in a span of months.
Multiplayer Game of Life
https://gameoflife.zweiundeins.gmbh
This demonstrates a Swoole app streaming 2500 divs 5 times a second to the browser via SSE. As SSE is just HTTP, it's Brotli-compressed and manages 100x compression after a few minutes, due to Brotli window spanning the entire stream. It's multiplayer, so open two tabs side by side to see. A year ago I never thought somesthing like this possible with PHP - this runs on a 20$/year VPS.
https://redd.it/1qeafok
@r_php
https://gameoflife.zweiundeins.gmbh
This demonstrates a Swoole app streaming 2500 divs 5 times a second to the browser via SSE. As SSE is just HTTP, it's Brotli-compressed and manages 100x compression after a few minutes, due to Brotli window spanning the entire stream. It's multiplayer, so open two tabs side by side to see. A year ago I never thought somesthing like this possible with PHP - this runs on a 20$/year VPS.
https://redd.it/1qeafok
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
SymfonyLive Paris 2026: "Doctrine inheritance"
https://symfony.com/blog/symfonylive-paris-2026-doctrine-inheritance?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1qef5e7
@r_php
https://symfony.com/blog/symfonylive-paris-2026-doctrine-inheritance?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1qef5e7
@r_php
Symfony
SymfonyLive Paris 2026: "Doctrine inheritance" (Symfony Blog)
Hériter des tables comme des classes, sans se tromper. Doctrine inheritance expliqué simplement par Rémi Janot, avec les bonnes stratégies et les pièges à éviter
Taylor Otwell interview about Laravel AI SDK
https://youtu.be/4mXUxk5noscriptw
https://redd.it/1qekw71
@r_php
https://youtu.be/4mXUxk5noscriptw
https://redd.it/1qekw71
@r_php
YouTube
Sweet Hang #4 w/ Taylor Otwell
Ian and Aaron are joined by Taylor Otwell for their first ever in-person episode of Mostly Technical to talk about everything from the Laravel AI SDK to Private Cloud to vibe coding MUD's and so much more.
Sponsored by:
- https://savvycal.com/appointments…
Sponsored by:
- https://savvycal.com/appointments…
Running PHP on AWS Lambda as a microservice
Finally had sometime to build a quick portfolio website for myself (https://www.niwebdev.co.uk if your interested!) and because my website will get little to no traffic I thought a serverless approach would be ideal.
I'm experienced with Python and Node.Js but PHP is my goto for a web application and wanted to experiment getting it running in Lambda.
Most of the heavy work is done for you with Bref (https://bref.sh) and it makes it super easy to build and deploy your PHP application.
Here are some of my findings which you might find useful if you want to go serverless with PHP:
Load Time
Pages are loaded between 40-60ms, cold start (no traffic within about 15 minutes) means the first page load is about 200-300ms. Overall very impressive.
SSL
All traffic is routed through the AWS API Gateway. This is brilliant because it handles the SSL for you, the downside is API Gateway only supports HTTPS. If someone accidentally uses HTTP they will get a 404. For my portfolio site I don't care, but on a customer site I would use a load balancer or I think Cloudfront can handle this better.
Web Server
Running PHP on Lamba eliminates the need for a web server. No more configuring Apache / Nginix / FrankenPHP. Doesn't matter if 1000 people hit your site at the same time, AWS will handle this.
Database / Caching
My site doesn't need a database or caching, but if you want to connect to these services you will need to add a NAT to your VPC. So even though you don't need to pay for a server, you will need a NAT for any site with complexity which costs more money than the low tier EC2 instances. I think a NAT costs about $30 a month before bandwidth and other fees.
State
Traditionally PHP is stateless, meaning nothing is preserved between requests. But using Lambda the same thread/worker can be reused. Lets say when your noscript loads and you set a user into memory, if you don't clear the state between each request it is possible you expose data to the wrong user. I added a clearState() function where I put any code needed to clean up at the start of each request.
Storage
To serve your static files and storage solutions in general you must use a CDN and S3. The only writable directory in Lambda is the temporary system directory. Most modern sites don't rely on server storage anymore so this isn't really an issue. The CDN and S3 is super cheap, probably costs next to nothing for my site.
Development vs Production
In my development environment I run Bref as a docker container. My production image uses php-84-fpm and my development image uses php-84-fpm-dev. The dev image has some useful extensions needed for development.
Summary
So far I would highly recommend switching from the traditional setup and go serverless with PHP. Just take into account the cost of the NAT which I don't need anyway for my site, but have setup for other sites I have now converted to serverless PHP and trimmed over $150 a month of the AWS bill.
Converting a site is very easy, especially if you already use S3 and a CDN.
Happy to answer any questions for anyone wanting help or advice.
https://redd.it/1qeob8o
@r_php
Finally had sometime to build a quick portfolio website for myself (https://www.niwebdev.co.uk if your interested!) and because my website will get little to no traffic I thought a serverless approach would be ideal.
I'm experienced with Python and Node.Js but PHP is my goto for a web application and wanted to experiment getting it running in Lambda.
Most of the heavy work is done for you with Bref (https://bref.sh) and it makes it super easy to build and deploy your PHP application.
Here are some of my findings which you might find useful if you want to go serverless with PHP:
Load Time
Pages are loaded between 40-60ms, cold start (no traffic within about 15 minutes) means the first page load is about 200-300ms. Overall very impressive.
SSL
All traffic is routed through the AWS API Gateway. This is brilliant because it handles the SSL for you, the downside is API Gateway only supports HTTPS. If someone accidentally uses HTTP they will get a 404. For my portfolio site I don't care, but on a customer site I would use a load balancer or I think Cloudfront can handle this better.
Web Server
Running PHP on Lamba eliminates the need for a web server. No more configuring Apache / Nginix / FrankenPHP. Doesn't matter if 1000 people hit your site at the same time, AWS will handle this.
Database / Caching
My site doesn't need a database or caching, but if you want to connect to these services you will need to add a NAT to your VPC. So even though you don't need to pay for a server, you will need a NAT for any site with complexity which costs more money than the low tier EC2 instances. I think a NAT costs about $30 a month before bandwidth and other fees.
State
Traditionally PHP is stateless, meaning nothing is preserved between requests. But using Lambda the same thread/worker can be reused. Lets say when your noscript loads and you set a user into memory, if you don't clear the state between each request it is possible you expose data to the wrong user. I added a clearState() function where I put any code needed to clean up at the start of each request.
Storage
To serve your static files and storage solutions in general you must use a CDN and S3. The only writable directory in Lambda is the temporary system directory. Most modern sites don't rely on server storage anymore so this isn't really an issue. The CDN and S3 is super cheap, probably costs next to nothing for my site.
Development vs Production
In my development environment I run Bref as a docker container. My production image uses php-84-fpm and my development image uses php-84-fpm-dev. The dev image has some useful extensions needed for development.
Summary
So far I would highly recommend switching from the traditional setup and go serverless with PHP. Just take into account the cost of the NAT which I don't need anyway for my site, but have setup for other sites I have now converted to serverless PHP and trimmed over $150 a month of the AWS bill.
Converting a site is very easy, especially if you already use S3 and a CDN.
Happy to answer any questions for anyone wanting help or advice.
https://redd.it/1qeob8o
@r_php
www.niwebdev.co.uk
Frontend & Backend Web Developer Specializing in AWS, DevOps & Software Architecture
Frontend & Backend Web Developer with expertise in AWS, DevOps, and software architecture. Based in Northern Ireland with global experience and multi-country work eligibility.
Livewire 4 Deep Dive: Components, Performance & New Directives
https://youtu.be/K6SIdjzbuYo
https://redd.it/1qf075r
@r_php
https://youtu.be/K6SIdjzbuYo
https://redd.it/1qf075r
@r_php
YouTube
Livewire 4 Deep Dive: Components, Performance & New Directives
Livewire 4 introduces powerful new features that make building Laravel applications even better. In this tutorial, I'll walk you through:
🔹 Creating Livewire 4 components - what's changed and improved
🔹 The new @placeholder directive - better loading states…
🔹 Creating Livewire 4 components - what's changed and improved
🔹 The new @placeholder directive - better loading states…
Laravel News Is the Live Stream Partner for Laracon EU 2026 - Laravel News
https://laravel-news.com/laravel-news-is-the-live-stream-partner-for-laracon-eu-2026
https://redd.it/1qj810t
@r_php
https://laravel-news.com/laravel-news-is-the-live-stream-partner-for-laracon-eu-2026
https://redd.it/1qj810t
@r_php
Laravel News
Laravel News Is the Live Stream Partner for Laracon EU 2026 - Laravel News
Laravel News is the exclusive live stream partner for Laracon EU 2026, bringing live coverage during breaks and lunch for the global Laravel community.
PHP 8.5 has been released for several months, but I finally found time to update my PHP cheat sheet
https://cheat-sheets.nth-root.nl/php-cheat-sheet.pdf
https://redd.it/1qi7pyf
@r_php
https://cheat-sheets.nth-root.nl/php-cheat-sheet.pdf
https://redd.it/1qi7pyf
@r_php