I wrote a phpstan rule extension to limit the use of transitive dependencies.
https://github.com/SpencerMalone/phpstan-no-transitive-use
https://redd.it/1kxutay
@r_php
https://github.com/SpencerMalone/phpstan-no-transitive-use
https://redd.it/1kxutay
@r_php
GitHub
GitHub - SpencerMalone/phpstan-no-transitive-use: Don't let your code use transitive dependencies.
Don't let your code use transitive dependencies. Contribute to SpencerMalone/phpstan-no-transitive-use development by creating an account on GitHub.
New in Symfony 7.3: DX Improvements (part 2)
https://symfony.com/blog/new-in-symfony-7-3-dx-improvements-part-2?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1ky60m8
@r_php
https://symfony.com/blog/new-in-symfony-7-3-dx-improvements-part-2?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1ky60m8
@r_php
Symfony
New in Symfony 7.3: DX Improvements (part 2) (Symfony Blog)
Symfony 7.3 adds better exception logging, enum support in config, native PHP 8.4 lazy objects, and key-based query mapping for improved DX.
Taylor Otwell: The Untold Laravel Origins, Design Patterns, Livewire vs Inertia, AI & More!
https://youtu.be/zWu-5KnFNZU?si=DPYU-ykxSz_-SlM7
https://redd.it/1ky9gjs
@r_php
https://youtu.be/zWu-5KnFNZU?si=DPYU-ykxSz_-SlM7
https://redd.it/1ky9gjs
@r_php
YouTube
Taylor Otwell: The Untold Laravel Origins, Design Patterns, Livewire vs Inertia, AI & More!
🔥 The most epic event is coming this summer: https://lrvl.co/birthday-taylor
💎 Learn From the Laravel Masters on Laracasts: https://laracasts.com/?ref=nunomaduro
🛠️ Code with JetBrains PHPStorm for world-class PHP development: https://jb.gg/nuno
🔎 Lightning…
💎 Learn From the Laravel Masters on Laracasts: https://laracasts.com/?ref=nunomaduro
🛠️ Code with JetBrains PHPStorm for world-class PHP development: https://jb.gg/nuno
🔎 Lightning…
Need help with xdebug in a multi developer environment.
I am a php web developer on a team of about 12 people. We all share a RHEL 9 server running PHP 8.2 and Apache. Each one of us has our own environment in /var/www/html/. We all use VSCode with the ssh-remote plugin to remotely develop on the server.
What we really lack is the ability to debug, so I had the server team install xdebug, which right now works for a single person using port 9003, but since we have multiple developers, I want us all to be able to use it.
ChatGPT and I cannot get this to work for web requests, but I can get it to work with noscripts.
I have these settings in php.ini
Zend_extension=“xdebug.so”
Xdebug.mode = debug
xdebug.start_with_request = trigger
Xdebug.discover_client_host = true
I have a launch.json file with type:php, request:launch, port:9010 (I’m using this port since it’s available and I think we each need our own port), pathMappings: {“/var/www/html/myenv”: “${workspaceFolder}”}
I’m copying this from my work pc to an iPad, so bear with me on formatting.
What am I missing? I need to be able to have xdebug to be able to debug for all developers through VSCode. I do not have DBGp proxy enabled, I read that I don’t need it. I tried using the xdebug chrome extension, no luck there.
I configured the xdebug log and with the right commands can get it to debug a file I run in the CLI. But I cannot get web requests to show up in the logs, and my breakpoints are not being hit.
I have found very little information on xdebug with multiple developers on a single server in their own environments.
https://redd.it/1ky9fex
@r_php
I am a php web developer on a team of about 12 people. We all share a RHEL 9 server running PHP 8.2 and Apache. Each one of us has our own environment in /var/www/html/. We all use VSCode with the ssh-remote plugin to remotely develop on the server.
What we really lack is the ability to debug, so I had the server team install xdebug, which right now works for a single person using port 9003, but since we have multiple developers, I want us all to be able to use it.
ChatGPT and I cannot get this to work for web requests, but I can get it to work with noscripts.
I have these settings in php.ini
Zend_extension=“xdebug.so”
Xdebug.mode = debug
xdebug.start_with_request = trigger
Xdebug.discover_client_host = true
I have a launch.json file with type:php, request:launch, port:9010 (I’m using this port since it’s available and I think we each need our own port), pathMappings: {“/var/www/html/myenv”: “${workspaceFolder}”}
I’m copying this from my work pc to an iPad, so bear with me on formatting.
What am I missing? I need to be able to have xdebug to be able to debug for all developers through VSCode. I do not have DBGp proxy enabled, I read that I don’t need it. I tried using the xdebug chrome extension, no luck there.
I configured the xdebug log and with the right commands can get it to debug a file I run in the CLI. But I cannot get web requests to show up in the logs, and my breakpoints are not being hit.
I have found very little information on xdebug with multiple developers on a single server in their own environments.
https://redd.it/1ky9fex
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Artisense: Laravel docs from the comfort of your terminal
https://github.com/JoeyMckenzie/artisense
https://redd.it/1kyf0fe
@r_php
https://github.com/JoeyMckenzie/artisense
https://redd.it/1kyf0fe
@r_php
GitHub
GitHub - JoeyMckenzie/artisense: 📕 Laravel docs from the comfort of your terminal.
📕 Laravel docs from the comfort of your terminal. Contribute to JoeyMckenzie/artisense development by creating an account on GitHub.
I built a coding agent in PHP that automatically resolves issues and opens PRs
https://youtu.be/rSfIOyQASC4
https://redd.it/1kyhoon
@r_php
https://youtu.be/rSfIOyQASC4
https://redd.it/1kyhoon
@r_php
YouTube
My own coding agent in 500 lines of PHP
"Autonomous coding agents" seem to be popping up everywhere lately. My curiosity got the best of me and I wondered if I could build one of my own using that old reliable language, PHP.
Despite a few hiccups (mostly due to not being the best at prompting)…
Despite a few hiccups (mostly due to not being the best at prompting)…
Multi tenancy with single db or multiple db?
I have real estate management system i have for now 4 clients created separate project instances with separate db. I am really confused what multi tenancy approach should i use with single db or separate db for each client?
https://redd.it/1kyjbxp
@r_php
I have real estate management system i have for now 4 clients created separate project instances with separate db. I am really confused what multi tenancy approach should i use with single db or separate db for each client?
https://redd.it/1kyjbxp
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Is it okay to have two classes that extend from Illuminate\Foundation\Auth\User?
I'm currently working on a portfolio project, and I am creating a basic Electronic Health Records system (my last job was in the medical industry).
While the lead developer at my last job made some bad mistakes in the initial design, something I warmed up to was having both Patients and Users (Doctors, Nurses, etc) in their own tables, regardless of having some similar fields (first/last, login/password). I found that having these as separate entities vastly helped development and debugging.
I'm now using Laravel (and Jetstream/Livewire), and am wondering if creating a separate model/table for Patients and having it also extend Illuminate\Foundation\Auth\User could cause any potential issues. I'm only planning on using the built in auth system, and some kind of 2FA for HIPPA compliance. There is also a slight chance of creating a RESTful API down the road.
Are there any potential pitfalls I should be aware of?
I'll also add that I'm developing this with TDD via Pest.
https://redd.it/1kyj9vw
@r_php
I'm currently working on a portfolio project, and I am creating a basic Electronic Health Records system (my last job was in the medical industry).
While the lead developer at my last job made some bad mistakes in the initial design, something I warmed up to was having both Patients and Users (Doctors, Nurses, etc) in their own tables, regardless of having some similar fields (first/last, login/password). I found that having these as separate entities vastly helped development and debugging.
I'm now using Laravel (and Jetstream/Livewire), and am wondering if creating a separate model/table for Patients and having it also extend Illuminate\Foundation\Auth\User could cause any potential issues. I'm only planning on using the built in auth system, and some kind of 2FA for HIPPA compliance. There is also a slight chance of creating a RESTful API down the road.
Are there any potential pitfalls I should be aware of?
I'll also add that I'm developing this with TDD via Pest.
https://redd.it/1kyj9vw
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
My Laravel Horizon preferences after 5 years of using it
https://govigilant.io/articles/my-laravel-horizon-preferences-after-5-years-of-using-it
https://redd.it/1kykj7y
@r_php
https://govigilant.io/articles/my-laravel-horizon-preferences-after-5-years-of-using-it
https://redd.it/1kykj7y
@r_php
govigilant.io
My Laravel Horizon preferences after 5 years of using it | Vigilant
When working with Laravel Horizon, it’s easy to get started, run php artisan horizon, dispatch some jobs, monitor them in the dashboard, and you’re good to go. But as your application scales and the amount of jobs grow more complex, subtle issues begin to…
My Laravel Horizon preferences after 5 years of using it
https://govigilant.io/articles/my-laravel-horizon-preferences-after-5-years-of-using-it
https://redd.it/1kz1c05
@r_php
https://govigilant.io/articles/my-laravel-horizon-preferences-after-5-years-of-using-it
https://redd.it/1kz1c05
@r_php
Reddit
From the PHP community on Reddit: My Laravel Horizon preferences after 5 years of using it
Posted by DutchBytes - 0 votes and 0 comments
PHP Annotated – May 2025
https://blog.jetbrains.com/phpstorm/2025/05/php-annotated-may-2025/
https://redd.it/1kz98ql
@r_php
https://blog.jetbrains.com/phpstorm/2025/05/php-annotated-may-2025/
https://redd.it/1kz98ql
@r_php
The JetBrains Blog
PHP Annotated – May 2025 | The PhpStorm Blog
Welcome to the May edition of PHP Annotated! It’s been a minute since the last edition. Turns out time flies when you’re deep in foundation work, and the occasional existential debugging session. But
Finally production-ready: Laravel MCP Server now supports true Streamable HTTP ⚡
https://github.com/opgginc/laravel-mcp-server
https://redd.it/1kz9r29
@r_php
https://github.com/opgginc/laravel-mcp-server
https://redd.it/1kz9r29
@r_php
GitHub
GitHub - opgginc/laravel-mcp-server: A Laravel package for implementing secure Model Context Protocol servers using Streamable…
A Laravel package for implementing secure Model Context Protocol servers using Streamable HTTP and SSE transport, providing real-time communication and a scalable tool system for enterprise environ...
Turboframe modal not closing upon form submit after adding LiveCollectionType formtype
The modal form close upon form submit just fine until I added LiveCollectionType::class.
I am using this LiveCollectionType so that I can add and remove items dynamically. Pretty much copied from Turbo examples.
It works fine. I can submit form and entities r added to database. Only that the modal frame doesnt close after form submit. If i doesnt use livecollectiontype::class, the modal closes upon form submission.
So what r the things that I missunderstand in using Livecollectiontype:class and turbo frame modal?
https://redd.it/1kzmork
@r_php
The modal form close upon form submit just fine until I added LiveCollectionType::class.
I am using this LiveCollectionType so that I can add and remove items dynamically. Pretty much copied from Turbo examples.
It works fine. I can submit form and entities r added to database. Only that the modal frame doesnt close after form submit. If i doesnt use livecollectiontype::class, the modal closes upon form submission.
So what r the things that I missunderstand in using Livecollectiontype:class and turbo frame modal?
https://redd.it/1kzmork
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Anyone migrated a legacy PHP project (e.g. Question2Answer) to PHP 8 using GitHub Copilot or ChatGPT?
Hey all,
I'm working with an older PHP web app — specifically a **Question2Answer (Q2A)** instance that's currently stuck on PHP 7.x. The official repo [on GitHub](https://github.com/q2a/question2answer) hasn't been very active, and there are a bunch of known incompatibilities with PHP 8 (e.g. `create_function`, old-style constructors, etc).
I'm considering using **GitHub Copilot**, **ChatGPT**, or even setting up an **agentic AI flow** to help modernise the codebase. My goal is to get it PHP 8+ compatible without having to refactor hundreds of files by hand.
Has anyone here tried:
* Migrating a large PHP 5.x or 7.x codebase to PHP 8+?
* Using Copilot or LLMs to assist with deprecated code fixes?
* Targeting open-source platforms like Q2A?
Would love to hear any success stories, gotchas, or workflow tips. Is Copilot helpful in practice for this kind of migration, or does it become a “review every line anyway” situation?
Cheers!
https://redd.it/1kztcxr
@r_php
Hey all,
I'm working with an older PHP web app — specifically a **Question2Answer (Q2A)** instance that's currently stuck on PHP 7.x. The official repo [on GitHub](https://github.com/q2a/question2answer) hasn't been very active, and there are a bunch of known incompatibilities with PHP 8 (e.g. `create_function`, old-style constructors, etc).
I'm considering using **GitHub Copilot**, **ChatGPT**, or even setting up an **agentic AI flow** to help modernise the codebase. My goal is to get it PHP 8+ compatible without having to refactor hundreds of files by hand.
Has anyone here tried:
* Migrating a large PHP 5.x or 7.x codebase to PHP 8+?
* Using Copilot or LLMs to assist with deprecated code fixes?
* Targeting open-source platforms like Q2A?
Would love to hear any success stories, gotchas, or workflow tips. Is Copilot helpful in practice for this kind of migration, or does it become a “review every line anyway” situation?
Cheers!
https://redd.it/1kztcxr
@r_php
GitHub
GitHub - q2a/question2answer: Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL. - q2a/question2answer
Blog, Filament or wordpress headless or similar?
Just checking what you guys use for blog content? I need good SEO etc, would you use headless wordpress, filamnet with plugins, or another cms?
Thanks
https://redd.it/1kzv2kt
@r_php
Just checking what you guys use for blog content? I need good SEO etc, would you use headless wordpress, filamnet with plugins, or another cms?
Thanks
https://redd.it/1kzv2kt
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
help with a project.
I'm having a problem with the main page part, the article i want to write should be on the slider . but its right in the middle . it doesn't slide to the side, i deleted the center from css and even used float but it didn't improve. what should i do ?
if anyone can help me please respond ;-;
https://redd.it/1l01kvs
@r_php
I'm having a problem with the main page part, the article i want to write should be on the slider . but its right in the middle . it doesn't slide to the side, i deleted the center from css and even used float but it didn't improve. what should i do ?
if anyone can help me please respond ;-;
https://redd.it/1l01kvs
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community