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
What would you want to see in the next Laracon?
With all the new developments in NativePHP (just heard that now supports filament), I'd love to see a live demonstration of building and running a mobile app on stage.
How cool would it be if Taylor coded something like a todo list app live in a few minutes and ran it on an android device? But that's just me, I love watching people code live lol.
What would you want to see?
https://redd.it/1l08m3r
@r_php
With all the new developments in NativePHP (just heard that now supports filament), I'd love to see a live demonstration of building and running a mobile app on stage.
How cool would it be if Taylor coded something like a todo list app live in a few minutes and ran it on an android device? But that's just me, I love watching people code live lol.
What would you want to see?
https://redd.it/1l08m3r
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Garlic-Hub: Open-Source, Self-Hosted Digital Signage CMS
I’m building in public and open source because the digital signage industry lacks transparency, with mostly cloud services or complicated outdated open-source solutions available.
What is garlic-hub?
Garlic-hub is a self-hosted, open-source digital signage solution
Digital Signage needs two parts:
garlic-hub as CMS: A modern CMS using a contemporary tech stack for easy use and deployment.
PHP 8.3 with SLim4 framework
Docker for simple, portable deployment
SMIL as Open Standard for Playlists
Modern vanilla JavaScript and HTML5 for fewer dependencies in the frontend
Player: I have already developed a media player named garlic-player which runs on Linux, Windows, macOS (Intel+Arm), and Android
Ways to contribute / Feedback welcome on:
Key features you’d expect in a digital signage CMS
Would you test or use Garlic-Hub?
I’d be really happy if you could star the repo to show your support:
https://github.com/sagiadinos/garlic-hub
Docker images available (x86 + ARM64):
https://hub.docker.com/r/sagiadinos/garlic-hub
https://redd.it/1l0i1nh
@r_php
I’m building in public and open source because the digital signage industry lacks transparency, with mostly cloud services or complicated outdated open-source solutions available.
What is garlic-hub?
Garlic-hub is a self-hosted, open-source digital signage solution
Digital Signage needs two parts:
garlic-hub as CMS: A modern CMS using a contemporary tech stack for easy use and deployment.
PHP 8.3 with SLim4 framework
Docker for simple, portable deployment
SMIL as Open Standard for Playlists
Modern vanilla JavaScript and HTML5 for fewer dependencies in the frontend
Player: I have already developed a media player named garlic-player which runs on Linux, Windows, macOS (Intel+Arm), and Android
Ways to contribute / Feedback welcome on:
Key features you’d expect in a digital signage CMS
Would you test or use Garlic-Hub?
I’d be really happy if you could star the repo to show your support:
https://github.com/sagiadinos/garlic-hub
Docker images available (x86 + ARM64):
https://hub.docker.com/r/sagiadinos/garlic-hub
https://redd.it/1l0i1nh
@r_php
GitHub
GitHub - sagiadinos/garlic-hub: Digital Signage Device and Content Management (SMIL compatible)
Digital Signage Device and Content Management (SMIL compatible) - sagiadinos/garlic-hub
A Week of Symfony #961 (May 26 – June 1, 2025)
https://symfony.com/blog/a-week-of-symfony-961-may-26-june-1-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l0jkxx
@r_php
https://symfony.com/blog/a-week-of-symfony-961-may-26-june-1-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l0jkxx
@r_php
Symfony
A Week of Symfony #961 (May 26 – June 1, 2025) (Symfony Blog)
This week, Symfony released the stable version of Symfony 7.3, which includes lots of amazing new features. We also published the maintenance versions 6.4.22 and 7.2.7.
🚀 Built an AI-Powered User Manager in Laravel (Live Demo + Code)
Hey devs! 👋
Just wanted to share a cool sample project I live-coded using Laravel + Filament + LarAgent — an AI-powered User Manager that can:
📊 Count users
✅ Read use data
💳 Change subnoscription plans
💬 All via a chat interface powered by LLMs
Instead of a classic admin panel, we let an AI agent handle the logic — with tools, memory, and real-time responses.
📺 Watch the livestream replay **https://www.youtube.com/watch?v=\_t6r6HIGERU&t=2s&ab\_channel=PunyapalShah**
💻 Source code on GitHub: github.com/MaestroError/punyapal-usermanager-agent
📖 Quickstart with LarAgent: docs.laragent.ai/quickstart
https://redd.it/1l0n3v5
@r_php
Hey devs! 👋
Just wanted to share a cool sample project I live-coded using Laravel + Filament + LarAgent — an AI-powered User Manager that can:
📊 Count users
✅ Read use data
💳 Change subnoscription plans
💬 All via a chat interface powered by LLMs
Instead of a classic admin panel, we let an AI agent handle the logic — with tools, memory, and real-time responses.
📺 Watch the livestream replay **https://www.youtube.com/watch?v=\_t6r6HIGERU&t=2s&ab\_channel=PunyapalShah**
💻 Source code on GitHub: github.com/MaestroError/punyapal-usermanager-agent
📖 Quickstart with LarAgent: docs.laragent.ai/quickstart
https://redd.it/1l0n3v5
@r_php
YouTube
Manage your users - AI Agent built in minutes with Laravel
We will build an AI-powered UserManager in Laravel with Filament UI—using LarAgent to count, search, activate/deactivate, change subnoscriptions, and all via a chat interface!
LarAgent
Quickstart: https://docs.laragent.ai/quickstart
Blog: https://blog.laragent.ai/…
LarAgent
Quickstart: https://docs.laragent.ai/quickstart
Blog: https://blog.laragent.ai/…
Recommendations for learning PHP
I was wondering if there are any good resources that could be recommended to learn PHP or ones that seem beginner-friendly? Hoping to learn Laravel following on from this:)
I know JavaScript, HTML, CSS and React for reference. Very much starting out still so to speak. Thank you in advance!
https://redd.it/1l0s0ju
@r_php
I was wondering if there are any good resources that could be recommended to learn PHP or ones that seem beginner-friendly? Hoping to learn Laravel following on from this:)
I know JavaScript, HTML, CSS and React for reference. Very much starting out still so to speak. Thank you in advance!
https://redd.it/1l0s0ju
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Weekly /r/Laravel Help Thread
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1l0ty7z
@r_php
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1l0ty7z
@r_php
Laravel
Installation - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
How to know if user is connected or not ?
I am really sorry if my question is stupid (I fell stupid asking it :D )
I have an app with 2 parts :
\- a VueJS front (SPA)
\- an API in Symfony
My app is available for both public and logged users. It's an SPA (so users change pages and pages "make" api calls to retrieve data)
Logged users have specials access (like posting comments etc.)
The authentication is JWT based with a token stored in http-only cookie.
My question is simple: how do you determine if a user is logged in, so you can, for example, show a dropdown in the navbar with their profile picture and access to settings?
My initial approach would be to create a dedicated route that simply returns whether the user is logged in or not. And call this route early when the app loads.
Do you have better idea to do it ?
How would you dot it ?
https://redd.it/1l0vvn1
@r_php
I am really sorry if my question is stupid (I fell stupid asking it :D )
I have an app with 2 parts :
\- a VueJS front (SPA)
\- an API in Symfony
My app is available for both public and logged users. It's an SPA (so users change pages and pages "make" api calls to retrieve data)
Logged users have specials access (like posting comments etc.)
The authentication is JWT based with a token stored in http-only cookie.
My question is simple: how do you determine if a user is logged in, so you can, for example, show a dropdown in the navbar with their profile picture and access to settings?
My initial approach would be to create a dedicated route that simply returns whether the user is logged in or not. And call this route early when the app loads.
Do you have better idea to do it ?
How would you dot it ?
https://redd.it/1l0vvn1
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
The Case Sensitivity Bug That Broke My Laravel Inertia Tests: A Cross-Platform Development Tale
https://oguzhankrcb.medium.com/the-case-sensitivity-bug-that-broke-my-laravel-inertia-tests-a-cross-platform-development-tale-2dc67b4c0c5d
https://redd.it/1l0wjad
@r_php
https://oguzhankrcb.medium.com/the-case-sensitivity-bug-that-broke-my-laravel-inertia-tests-a-cross-platform-development-tale-2dc67b4c0c5d
https://redd.it/1l0wjad
@r_php
Medium
The Case Sensitivity Bug That Broke My Laravel Inertia Tests: A Cross-Platform Development Tale
Preliminary Information
Which Cloud hosting service do you recommend for PHP 8.4?
All that I've contacted don't seem to support this version.
Which reputable cloud hosts support 8.4?
https://redd.it/1l0ypfd
@r_php
All that I've contacted don't seem to support this version.
Which reputable cloud hosts support 8.4?
https://redd.it/1l0ypfd
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
The Case Sensitivity Bug That Broke My Laravel Inertia Tests: A Cross-Platform Development Tale
https://oguzhankrcb.medium.com/the-case-sensitivity-bug-that-broke-my-laravel-inertia-tests-a-cross-platform-development-tale-2dc67b4c0c5d
https://redd.it/1l0wlb0
@r_php
https://oguzhankrcb.medium.com/the-case-sensitivity-bug-that-broke-my-laravel-inertia-tests-a-cross-platform-development-tale-2dc67b4c0c5d
https://redd.it/1l0wlb0
@r_php
Medium
The Case Sensitivity Bug That Broke My Laravel Inertia Tests: A Cross-Platform Development Tale
Preliminary Information
The Case Sensitivity Bug That Broke My Laravel Inertia Tests: A Cross-Platform Development Tale
https://oguzhankrcb.medium.com/the-case-sensitivity-bug-that-broke-my-laravel-inertia-tests-a-cross-platform-development-tale-2dc67b4c0c5d
https://redd.it/1l0wk5j
@r_php
https://oguzhankrcb.medium.com/the-case-sensitivity-bug-that-broke-my-laravel-inertia-tests-a-cross-platform-development-tale-2dc67b4c0c5d
https://redd.it/1l0wk5j
@r_php
Medium
The Case Sensitivity Bug That Broke My Laravel Inertia Tests: A Cross-Platform Development Tale
Preliminary Information
Laravel Forge MCP server
So, I did a thing tonight to try and learn about MCP servers. I built a MCP server for Laravel forge.
Would this be helpful to anyone else?
https://github.com/bretterer/forge-mcp-server
https://redd.it/1l17a86
@r_php
So, I did a thing tonight to try and learn about MCP servers. I built a MCP server for Laravel forge.
Would this be helpful to anyone else?
https://github.com/bretterer/forge-mcp-server
https://redd.it/1l17a86
@r_php
GitHub
GitHub - bretterer/forge-mcp-server: Laravel Forge MCP server for managing servers, sites, and deployments
Laravel Forge MCP server for managing servers, sites, and deployments - bretterer/forge-mcp-server
Weekly Ask Anything Thread
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1l17oki
@r_php
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1l17oki
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Weekly help thread
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1l1aiad
@r_php
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1l1aiad
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
appendHTML with the new Dom library
If you are working with the new
https://redd.it/1l1hd81
@r_php
If you are working with the new
Dom\HTMLDocument in PHP 8.4 and want to append a HTML snippet to the document by creating Dom\DocumentFragment, shouldn't there be a appendHTML similar to the appendXML?https://redd.it/1l1hd81
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community