How to Make Your AI Agent Program PHP and Laravel with Grace and Style
https://spatie.be/blog/how-to-make-your-ai-agent-program-with-grace-and-style
https://redd.it/1m875ov
@r_php
https://spatie.be/blog/how-to-make-your-ai-agent-program-with-grace-and-style
https://redd.it/1m875ov
@r_php
spatie.be
How to Make Your AI Agent Program PHP and Laravel with Grace and Style
We've converted our PHP and Laravel coding guidelines into AI-friendly instructions so Claude Code and other AI agents can generate code that matches our established programming style.
LarAgent v0.5 Preview: Groq API, Audio Modality, and More
https://blog.laragent.ai/laragent-v0-5-preview-groq-api-audio-modality-and-more-configs/
https://redd.it/1m88ksa
@r_php
https://blog.laragent.ai/laragent-v0-5-preview-groq-api-audio-modality-and-more-configs/
https://redd.it/1m88ksa
@r_php
LarAgent
LarAgent v0.5 Preview: Groq API, Audio Modality, and More Configs
LarAgent just upgraded — big time. We're bringing powerful new AI capabilities, better control, and multi-modality support to Laravel developers.
Let’s break it down 👇
🔹 Groq API + Massive Model Expansion
Ever wanted access to blazing-fast AI models beyond…
Let’s break it down 👇
🔹 Groq API + Massive Model Expansion
Ever wanted access to blazing-fast AI models beyond…
Why I Prefer Procedural PHP
There’s a reason I keep reaching for plain, procedural PHP when I build. It’s not about being old-school or resisting frameworks. It’s about clarity, control, and getting the job done without the overhead.
# 🧱 1. I Don’t Need Fancy Terms
In procedural PHP, I don’t have to wrestle with abstract terms like "model," "resource," or "controller."
I write a function: that’s my logic.
I fetch some rows: that’s my data.
I display it in a table: that’s my output.
That’s it. No mental gymnastics. Just code that does what I want.
# 🔍 2. I See Everything That’s Happening
No magic. No hidden behavior. When I write procedural PHP, I know exactly what’s running and in what order. Every query, every echo, every variable — it’s all mine to control.
Frameworks can be helpful, but they often hide a lot. With procedural, I don’t need to trace through middleware or abstract classes just to understand what’s going on.
# 🪶 3. It’s Lightweight and Fast
I can spin up a full feature — like a data table with CRUD — using just a few PHP files and a database connection. No installations, no package managers, no artisan commands. It just works.
For admin panels, dashboards, internal tools, or teaching — procedural PHP gets me there faster.
# 📄 4. The Architecture Still Exists — It’s Just Natural
I may not call them "models" or "resources," but I still use the same ideas:
I separate logic into functions (model behavior)
I write clean HTML output (view)
I structure files by purpose (controller-like)
It’s MVC — just without the ceremony.
# 🧠 5. It Teaches You What’s Actually Happening
When students start with procedural PHP, they learn how things work, not just how to use a framework. They see SQL. They understand what
That’s powerful. And it's real learning.
# 🚀 Final Thought
I don’t need a framework to write good code. I need clear logic, a direct path to the data, and full control of the output. And that’s exactly what procedural PHP gives me.
It’s not outdated. It’s not primitive.
It’s honest, practical, and perfectly suited to many of the things I build.
>
https://redd.it/1m8ubvl
@r_php
There’s a reason I keep reaching for plain, procedural PHP when I build. It’s not about being old-school or resisting frameworks. It’s about clarity, control, and getting the job done without the overhead.
# 🧱 1. I Don’t Need Fancy Terms
In procedural PHP, I don’t have to wrestle with abstract terms like "model," "resource," or "controller."
I write a function: that’s my logic.
I fetch some rows: that’s my data.
I display it in a table: that’s my output.
That’s it. No mental gymnastics. Just code that does what I want.
# 🔍 2. I See Everything That’s Happening
No magic. No hidden behavior. When I write procedural PHP, I know exactly what’s running and in what order. Every query, every echo, every variable — it’s all mine to control.
Frameworks can be helpful, but they often hide a lot. With procedural, I don’t need to trace through middleware or abstract classes just to understand what’s going on.
# 🪶 3. It’s Lightweight and Fast
I can spin up a full feature — like a data table with CRUD — using just a few PHP files and a database connection. No installations, no package managers, no artisan commands. It just works.
For admin panels, dashboards, internal tools, or teaching — procedural PHP gets me there faster.
# 📄 4. The Architecture Still Exists — It’s Just Natural
I may not call them "models" or "resources," but I still use the same ideas:
I separate logic into functions (model behavior)
I write clean HTML output (view)
I structure files by purpose (controller-like)
It’s MVC — just without the ceremony.
# 🧠 5. It Teaches You What’s Actually Happening
When students start with procedural PHP, they learn how things work, not just how to use a framework. They see SQL. They understand what
$_POST means. They learn to debug raw errors and fix their own queries.That’s powerful. And it's real learning.
# 🚀 Final Thought
I don’t need a framework to write good code. I need clear logic, a direct path to the data, and full control of the output. And that’s exactly what procedural PHP gives me.
It’s not outdated. It’s not primitive.
It’s honest, practical, and perfectly suited to many of the things I build.
>
https://redd.it/1m8ubvl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
The world is going insane!
I feel like the world has become so bat shit crazy, as IRL, i keep running into developers who insist on using node.js over LAMP...
to me this is a sure fire indicator of a failing society; something in the water is making people dumb and illogical.
i've been a programmer for 20+ years now... and IRL i haven't met a single dev who sticks to LAMP over node.js... meanwhile, i've replaced many of their failed node.js apps (including mobile apps) with LAMP, where they can sit for years without breaking or updates. i'm semi-retired on retainer and i don't have time for fixing all of their broken crap all the time!
https://redd.it/1m90zgm
@r_php
I feel like the world has become so bat shit crazy, as IRL, i keep running into developers who insist on using node.js over LAMP...
to me this is a sure fire indicator of a failing society; something in the water is making people dumb and illogical.
i've been a programmer for 20+ years now... and IRL i haven't met a single dev who sticks to LAMP over node.js... meanwhile, i've replaced many of their failed node.js apps (including mobile apps) with LAMP, where they can sit for years without breaking or updates. i'm semi-retired on retainer and i don't have time for fixing all of their broken crap all the time!
https://redd.it/1m90zgm
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Implementing SCIM?
Does anyone have any experience+recommendations for implementing SCIM?
This will be for Entra and possibly Okta.
TIA!
https://redd.it/1m934dy
@r_php
Does anyone have any experience+recommendations for implementing SCIM?
This will be for Entra and possibly Okta.
TIA!
https://redd.it/1m934dy
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Go-to for testing local Laravel projects on your phone?
I didn't keep track... but I tried a bunch of stuff with no success.
Is there any simple go-to Lavavel setup for this? We want to adjust our style-guide while all looking at our phones live.
https://redd.it/1m9a13w
@r_php
I didn't keep track... but I tried a bunch of stuff with no success.
Is there any simple go-to Lavavel setup for this? We want to adjust our style-guide while all looking at our phones live.
https://redd.it/1m9a13w
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
[French] Get ready for Symfony AI
https://youtu.be/hbOTSSYfrmw?si=zy3lJvuYtDw-M781
https://redd.it/1m9blo9
@r_php
https://youtu.be/hbOTSSYfrmw?si=zy3lJvuYtDw-M781
https://redd.it/1m9blo9
@r_php
YouTube
Préparez-vous à Symfony AI (Agent, LLM, MCP, RAG, Embeddings...)
Symfony passe à la vitesse supérieure avec l’introduction d’un écosystème IA intégré. Dans cette vidéo, on explore ensemble les concepts clés qui vont transformer la façon dont vous développez vous applications !
Rejoins-moi pour transformer tes compétences…
Rejoins-moi pour transformer tes compétences…
Laracon Denver roll call
Who is bound for Denver in the coming days? I'm about to set off from New Zealand in the next few hours here.
Looking forward to the golf on Monday and then of course seeing old friends and making new ones.
https://redd.it/1m9ey7s
@r_php
Who is bound for Denver in the coming days? I'm about to set off from New Zealand in the next few hours here.
Looking forward to the golf on Monday and then of course seeing old friends and making new ones.
https://redd.it/1m9ey7s
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Going all-in on modularized, event-driven development?
I’ve been working with Laravel for over 5 years now, mostly solo, so I know my way around Laravel fairly well. The majority of my projects are fairly simple request/response API’s, and I’ve never had much of a problem maintaining or scaling them. I already try to keep code decoupled where possible, and I also try to keep files as small as possible.
However, I’m currently planning on a somewhat larger project. Still solo, but more external services involved, and more internal aspects as well. One thing that kind of bothered me on a recent project, was that all classes were grouped together inside ‘/app’ by type, and not by module. So I watched the Modular Laravel course on Laracasts, and I really like the concept of having the whole code as decoupled as possible using events & listeners, and grouping the classes per module.
I’ve already worked out a proof of concept that integrates Nwidart’s laravel-modules package with Spatie’s laravel-multitenancy package, and to be honest, I think that it absolutely works great. On the other side however, I think that I might be making things too complex for myself. Especially now, at the beginning, it took quiet some time to get everything set up properly, and I’m not sure whether it’ll actually be saving me time and headaches in the future.
Again, on the other hand, the project involves messaging and communication with external services (including AI generated responses), so many processes are async, which of course goes well with an event driven approach.
Any recommendations on what I should watch out for, or any tips that I need to know before really getting started? Or should I just get started quickly using my traditional methods and refactor later if it gets complex or messy?
https://redd.it/1m9fskn
@r_php
I’ve been working with Laravel for over 5 years now, mostly solo, so I know my way around Laravel fairly well. The majority of my projects are fairly simple request/response API’s, and I’ve never had much of a problem maintaining or scaling them. I already try to keep code decoupled where possible, and I also try to keep files as small as possible.
However, I’m currently planning on a somewhat larger project. Still solo, but more external services involved, and more internal aspects as well. One thing that kind of bothered me on a recent project, was that all classes were grouped together inside ‘/app’ by type, and not by module. So I watched the Modular Laravel course on Laracasts, and I really like the concept of having the whole code as decoupled as possible using events & listeners, and grouping the classes per module.
I’ve already worked out a proof of concept that integrates Nwidart’s laravel-modules package with Spatie’s laravel-multitenancy package, and to be honest, I think that it absolutely works great. On the other side however, I think that I might be making things too complex for myself. Especially now, at the beginning, it took quiet some time to get everything set up properly, and I’m not sure whether it’ll actually be saving me time and headaches in the future.
Again, on the other hand, the project involves messaging and communication with external services (including AI generated responses), so many processes are async, which of course goes well with an event driven approach.
Any recommendations on what I should watch out for, or any tips that I need to know before really getting started? Or should I just get started quickly using my traditional methods and refactor later if it gets complex or messy?
https://redd.it/1m9fskn
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Introducing Bifrost - The Build Service for NativePHP Apps
https://www.youtube.com/watch?v=gj5fXhYscyI&ab_channel=NativePHP
https://redd.it/1m9ky2g
@r_php
https://www.youtube.com/watch?v=gj5fXhYscyI&ab_channel=NativePHP
https://redd.it/1m9ky2g
@r_php
YouTube
Introducing Bifrost — The NativePHP Build Service for Laravel Apps on iOS, Android, macOS, and more
Build Laravel apps for every platform. No extra languages. No wrappers. Just PHP.
Bifrost is the official build service for NativePHP.
Shane and Simon walk through why they built Bifrost, and how it’s unlocking cross-platform deployment for PHP developers…
Bifrost is the official build service for NativePHP.
Shane and Simon walk through why they built Bifrost, and how it’s unlocking cross-platform deployment for PHP developers…
Best MongoDB ORM/ODM?
Anything other than doctrine. It works but I’m wondering if there are better alternatives out there, and am curious to see what you use!
https://redd.it/1m9nl3p
@r_php
Anything other than doctrine. It works but I’m wondering if there are better alternatives out there, and am curious to see what you use!
https://redd.it/1m9nl3p
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Introducing Hookshot: Easy HTTP Request Tracking for Laravel
https://github.com/vildanbina/hookshot
https://redd.it/1m9ojpp
@r_php
https://github.com/vildanbina/hookshot
https://redd.it/1m9ojpp
@r_php
GitHub
GitHub - vildanbina/hookshot: A powerful Laravel package for capturing and tracking HTTP requests with multiple storage drivers…
A powerful Laravel package for capturing and tracking HTTP requests with multiple storage drivers, smart filtering, and advanced analytics capabilities. - vildanbina/hookshot
Your tools for a redesign
Hello everyone.
I am in a project where there is a possible redesign (because the successive version upgrade will be too costly).
The announced objective is Symfony7 with PHP 8.4 (or 8.5 if available). Do you have tools to maintain maintainable code in the long term.
I already know SOLID, clean code, clean architecture, screaming architecture, phpunit.
I cannot use xdebug because it is too demanding because the VMs are managed on a potato.
https://redd.it/1m9n3ic
@r_php
Hello everyone.
I am in a project where there is a possible redesign (because the successive version upgrade will be too costly).
The announced objective is Symfony7 with PHP 8.4 (or 8.5 if available). Do you have tools to maintain maintainable code in the long term.
I already know SOLID, clean code, clean architecture, screaming architecture, phpunit.
I cannot use xdebug because it is too demanding because the VMs are managed on a potato.
https://redd.it/1m9n3ic
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Debugging sucks in PHP and things should change!
Hi, creating this post in the hope that php foundation will give some care to improve the debugging experience in php.
Reason being that almost all people i know do not use xdebug, even experienced devs.
It seems people found it hard to setup initially and they have grown without it. If in another language the first thing you do is start debugging, most php devs will just go the old fashion way, dd/print etc.
I myself have only managed to have xdebug working twice on phpstorm, same on vscode but for whatever reason vscode seams easier to setup. Its hard, it can easily go wrong, even when done right you sometimes mess the xdebug config and now the page takes twice to load. Add the fact that you setup multiple projects with different environments, it gets messy.
The debugging experience just isnt there, you may say its easy and you are right to a degree, but many things can go wrong and seeing most software php shops with a debugging session is a rare occurrence, that should give a hint why.
Debugging should be built within php, i consider this one of the most important things in the level of async and generics.
I'm thankful to the php foundation for bringing the language forward, even with their small resources, but if setting this up doesnt cost an arm and a leg it should be done.
P.S. please dont tell me its easy and a skill issue, it aint as easy and it should be way easier, the usage reflects it.
https://redd.it/1m9zyem
@r_php
Hi, creating this post in the hope that php foundation will give some care to improve the debugging experience in php.
Reason being that almost all people i know do not use xdebug, even experienced devs.
It seems people found it hard to setup initially and they have grown without it. If in another language the first thing you do is start debugging, most php devs will just go the old fashion way, dd/print etc.
I myself have only managed to have xdebug working twice on phpstorm, same on vscode but for whatever reason vscode seams easier to setup. Its hard, it can easily go wrong, even when done right you sometimes mess the xdebug config and now the page takes twice to load. Add the fact that you setup multiple projects with different environments, it gets messy.
The debugging experience just isnt there, you may say its easy and you are right to a degree, but many things can go wrong and seeing most software php shops with a debugging session is a rare occurrence, that should give a hint why.
Debugging should be built within php, i consider this one of the most important things in the level of async and generics.
I'm thankful to the php foundation for bringing the language forward, even with their small resources, but if setting this up doesnt cost an arm and a leg it should be done.
P.S. please dont tell me its easy and a skill issue, it aint as easy and it should be way easier, the usage reflects it.
https://redd.it/1m9zyem
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Why do people use repositories for getting DB records in Laravel
For me personally, I don't like using repositories in laravel... why, because it makes no sense, at the end of the day you are going to use the model to fetch data from DB, and if you need a reusable logic for your queries, you can use scopes or queury builds. I still see people building Laravel projects using repositories and it's always end up being chaotic. And you will actually end up writing the same logic for the query and duplicating the code because you don't want to touch the repository function which may break something else in the app.
For other frameworks like Symfony, repositories makes sense but not in Laravel.
I want to know your opinion about using Repositories in laravel, do you think that it can be useful or it's just something people coming from other framework do because they are used to it.
https://redd.it/1ma0y9m
@r_php
For me personally, I don't like using repositories in laravel... why, because it makes no sense, at the end of the day you are going to use the model to fetch data from DB, and if you need a reusable logic for your queries, you can use scopes or queury builds. I still see people building Laravel projects using repositories and it's always end up being chaotic. And you will actually end up writing the same logic for the query and duplicating the code because you don't want to touch the repository function which may break something else in the app.
For other frameworks like Symfony, repositories makes sense but not in Laravel.
I want to know your opinion about using Repositories in laravel, do you think that it can be useful or it's just something people coming from other framework do because they are used to it.
https://redd.it/1ma0y9m
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Built a production-ready CRM in PHP 8.3 with 99.6% type coverage - lessons learned from 8 years of PHP development
Hi r/php!
I've been developing in PHP for 8+ years, and I recently launched Relaticle, an open-source CRM that represents everything I've learned about building maintainable PHP applications.
Technical highlights:
PHP 8.3 with strict types everywhere
99.6% type coverage (measured by PHPStan level 7)
Full use of PHP 8 features: attributes, enums, readonly properties, constructor property promotion
MVC architecture with action pattern
Comprehensive error handling with custom exception classes
Architecture decisions:
Service layer pattern for business logic separation
Action classes for complex operations
DTOs for data transfer between layers
Event-driven architecture for extensibility
Database transactions with proper rollback handling
Performance optimizations:
Implemented query result caching with Redis
Optimized N+1 queries throughout
Built a custom field system that scales efficiently
Lazy loading for heavy resources
The biggest challenge was creating a dynamic custom fields system that maintains performance even with hundreds of fields. Solved it through clever caching strategies and optimized database queries.
It's production-ready (v1.x) and actively used. Looking for experienced PHP developers who want to collaborate and share knowledge.
Demo: https://relaticle.com
GitHub: https://github.com/Relaticle/relaticle
What architectural patterns have worked best for your large PHP projects?
https://redd.it/1maer2h
@r_php
Hi r/php!
I've been developing in PHP for 8+ years, and I recently launched Relaticle, an open-source CRM that represents everything I've learned about building maintainable PHP applications.
Technical highlights:
PHP 8.3 with strict types everywhere
99.6% type coverage (measured by PHPStan level 7)
Full use of PHP 8 features: attributes, enums, readonly properties, constructor property promotion
MVC architecture with action pattern
Comprehensive error handling with custom exception classes
Architecture decisions:
Service layer pattern for business logic separation
Action classes for complex operations
DTOs for data transfer between layers
Event-driven architecture for extensibility
Database transactions with proper rollback handling
Performance optimizations:
Implemented query result caching with Redis
Optimized N+1 queries throughout
Built a custom field system that scales efficiently
Lazy loading for heavy resources
The biggest challenge was creating a dynamic custom fields system that maintains performance even with hundreds of fields. Solved it through clever caching strategies and optimized database queries.
It's production-ready (v1.x) and actively used. Looking for experienced PHP developers who want to collaborate and share knowledge.
Demo: https://relaticle.com
GitHub: https://github.com/Relaticle/relaticle
What architectural patterns have worked best for your large PHP projects?
https://redd.it/1maer2h
@r_php
Relaticle
Relaticle - Open-Source CRM Platform
Discover Relaticle, the next-generation open-source CRM platform. Powerful, flexible, and built for modern businesses.
Advice on finding job in this madness
Hi, it's been 9 months since I got laid off randomly from my company, since then, I just wasted hours on sending CVs and doing interviews that led to absolutely nothing.
I have been ghosted after the 2nd interview and then saw them posting the same advert since then every week, or wasted my time doing tests and stupid interviews for basic roles, then during the interview the role became an entire department because "we are a small company, we need to be multitasking".
I have a good amount of experience, both front and back end, but since I am a PHP dev, now I am stupid because "PHP Is DeAddd!!1!111".
I have worked extensively with WordPress (I know I lot of people hate it, but what can I do, it pays the bills), I also did a lot of procedural PHP, worked with Laravel and Zend, but it seems like it's never enough.
I know we are all in the same boat, more or less, but I cannot see a way of finding a job now. If I apply for "normal" jobs, just to have some money, I get no response, if I apply for my job, same crap. What I am supposed to do? Sell drugs at this point I think.
Unfortunately I cannot even start my own business, so that's not an option.
Thought about Envato and similar, but it's just too late to sell stuff on that.
Fiverr etc are a battleground for who does it at the lowest price.
LikedIn is just useless, Indeed quite similar. I tried also other websites like WeWorkRemotely and similar but most of the jobs are JS related.
Any other website I can try? I mean, I also spammed my CV to companies found on google from big to small.
I think a good option now would be to be like Ranma, I could become a woman with cold water and open an OnlyFans account.
https://redd.it/1magmxm
@r_php
Hi, it's been 9 months since I got laid off randomly from my company, since then, I just wasted hours on sending CVs and doing interviews that led to absolutely nothing.
I have been ghosted after the 2nd interview and then saw them posting the same advert since then every week, or wasted my time doing tests and stupid interviews for basic roles, then during the interview the role became an entire department because "we are a small company, we need to be multitasking".
I have a good amount of experience, both front and back end, but since I am a PHP dev, now I am stupid because "PHP Is DeAddd!!1!111".
I have worked extensively with WordPress (I know I lot of people hate it, but what can I do, it pays the bills), I also did a lot of procedural PHP, worked with Laravel and Zend, but it seems like it's never enough.
I know we are all in the same boat, more or less, but I cannot see a way of finding a job now. If I apply for "normal" jobs, just to have some money, I get no response, if I apply for my job, same crap. What I am supposed to do? Sell drugs at this point I think.
Unfortunately I cannot even start my own business, so that's not an option.
Thought about Envato and similar, but it's just too late to sell stuff on that.
Fiverr etc are a battleground for who does it at the lowest price.
LikedIn is just useless, Indeed quite similar. I tried also other websites like WeWorkRemotely and similar but most of the jobs are JS related.
Any other website I can try? I mean, I also spammed my CV to companies found on google from big to small.
I think a good option now would be to be like Ranma, I could become a woman with cold water and open an OnlyFans account.
https://redd.it/1magmxm
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
A Week of Symfony #969 (July 21–27, 2025)
https://symfony.com/blog/a-week-of-symfony-969-july-21-27-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1mahizf
@r_php
https://symfony.com/blog/a-week-of-symfony-969-july-21-27-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1mahizf
@r_php
Symfony
A Week of Symfony #969 (July 21–27, 2025) (Symfony Blog)
This week, development focused on the upcoming Symfony 7.4 and 8.0 releases. We added new features such as the ObjectMapperAwareInterface, improved value transformers in JsonStreamer, and enabled load…
Built a production-ready Open-Source CRM with Laravel 12 & Filament 3 - Solved some interesting performance challenges with custom fields
https://redd.it/1maktn0
@r_php
https://redd.it/1maktn0
@r_php
Laravel Rate Limiting — Explained with Real-Life Examples
https://backpackforlaravel.com/articles/tutorials/laravel-rate-limiting-explained-with-real-life-examples
https://redd.it/1mal4w9
@r_php
https://backpackforlaravel.com/articles/tutorials/laravel-rate-limiting-explained-with-real-life-examples
https://redd.it/1mal4w9
@r_php
Backpack
Laravel Rate Limiting — Explained with Real-Life Examples
Imagine this — your app is running smoothly, then suddenly it gets hit with a wave of requests. Some from real users, others from bots...