Introducing Web Search Capabilities For PHP AI Agents
https://inspector.dev/introducing-web-search-capabilities-for-php-ai-agents/
https://redd.it/1ksnqef
@r_php
https://inspector.dev/introducing-web-search-capabilities-for-php-ai-agents/
https://redd.it/1ksnqef
@r_php
Inspector
Introducing Web Search Capabilities For PHP AI Agents
Add Web Search capabilities to your PHP AI Agents with an easy to integrate Tool. Neuron AI integrates Tavily powered web search for PHP AI Agents.
Celebrate Gemini's NEW MCP Support with our Laravel MCP Server (SSE-based)!
https://github.com/opgginc/laravel-mcp-server
https://redd.it/1ksooyb
@r_php
https://github.com/opgginc/laravel-mcp-server
https://redd.it/1ksooyb
@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...
A package to handle one-time passwords (OTP) in Laravel apps
https://spatie.be/blog/a-package-to-handle-one-time-passwords-otp-in-laravel-apps
https://redd.it/1ksqep5
@r_php
https://spatie.be/blog/a-package-to-handle-one-time-passwords-otp-in-laravel-apps
https://redd.it/1ksqep5
@r_php
spatie.be
A package to handle one-time passwords (OTP) in Laravel apps
Why are twig variables supposed to be snakedcase
Twig recommends to name variables in snakecase but why would camelCase not make more sense because every PHP variable is camelCase? Also camelCase looks much nicer for variables.
There are also big Symfony projects like Shopware that use camelCase for twig variable names.
https://redd.it/1ksw7lg
@r_php
Twig recommends to name variables in snakecase but why would camelCase not make more sense because every PHP variable is camelCase? Also camelCase looks much nicer for variables.
There are also big Symfony projects like Shopware that use camelCase for twig variable names.
https://redd.it/1ksw7lg
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
I built Larabuild — a v0.dev-inspired tool for generating Laravel Blade components with Tailwind and live previews
Hey all 👋
I've been working on a little tool called Larabuild — heavily inspired by v0.dev, but tailored specifically for Laravel devs who love Blade and Tailwind.
The idea is simple:
You type what you want (“a hero section with a video background and call to action”), and it gives you clean, previewable Blade + Tailwind v4 components — using props, projects, and your design system context.
Right now:
You get 50 prompts to play with
It supports projects, Live previews, and prop-driven components
It's very much in alpha — things might break, but the core works
I’d love your feedback before polishing and building further
🔗 https://larabuild.com
If you're into Laravel, Tailwind, or tools like v0.dev — I’d love to hear what you think or what you'd want added next.
Thanks!
—Elliott
https://redd.it/1kszg6k
@r_php
Hey all 👋
I've been working on a little tool called Larabuild — heavily inspired by v0.dev, but tailored specifically for Laravel devs who love Blade and Tailwind.
The idea is simple:
You type what you want (“a hero section with a video background and call to action”), and it gives you clean, previewable Blade + Tailwind v4 components — using props, projects, and your design system context.
Right now:
You get 50 prompts to play with
It supports projects, Live previews, and prop-driven components
It's very much in alpha — things might break, but the core works
I’d love your feedback before polishing and building further
🔗 https://larabuild.com
If you're into Laravel, Tailwind, or tools like v0.dev — I’d love to hear what you think or what you'd want added next.
Thanks!
—Elliott
https://redd.it/1kszg6k
@r_php
v0.app
v0 by Vercel - Build Agents, Apps, and Websites with AI
Your collaborative AI assistant to design, iterate, and scale full-stack applications for the web.
Optimizing MySQL queries in PHP apps
Vlad Mihalcea shared some interesting findings after running the Spring PetClinic app under load and analyzing query performance.
The tool he used flagged high-latency queries, suggested index changes, helped reduce resource usage and improve query performance.
Link if you want to skim: https://vladmihalcea.com/mysql-query-optimization-releem/
Just curious - anyone here use tools for automatic SQL query optimization in your workflow?
https://redd.it/1kt0zh1
@r_php
Vlad Mihalcea shared some interesting findings after running the Spring PetClinic app under load and analyzing query performance.
The tool he used flagged high-latency queries, suggested index changes, helped reduce resource usage and improve query performance.
Link if you want to skim: https://vladmihalcea.com/mysql-query-optimization-releem/
Just curious - anyone here use tools for automatic SQL query optimization in your workflow?
https://redd.it/1kt0zh1
@r_php
Vlad Mihalcea
MySQL Query Optimization with Releem - Vlad Mihalcea
If you are using MySQL and want to benefit from automatic query optimization, then Releem can help you achieve this goal.
🪨 Granite 1.0.0 is here!
Just released Granite, a lightweight PHP library that makes building type-safe, immutable DTOs and Value Objects a breeze.
Granite is a zero-dependency PHP 8.3+ library for creating immutable objects with validation.
**Main features:**
* ✅ **Zero dependencies** \- Pure PHP 8.3+
* ✅ **Attribute-based validation** \- Use PHP 8 attributes right on your properties
* ✅ **Immutable by design** \- All objects are read-only and type-safe
* ✅ **Smart serialization** \- Control property names and hide sensitive data
* ✅ **Auto type conversion** \- DateTime, Enums, nested objects just work
* ✅ **Built-in AutoMapper** \- Map between different object structures effortlessly
* ✅ **Performance optimized** \- Reflection caching under the hood
Perfect for APIs, domain models, and anywhere you need bulletproof data objects.
**Install:** `composer require diego-ninja/granite`
**Repo:** [https://github.com/diego-ninja/granite](https://github.com/diego-ninja/granite)
Comments, ideas, and collaborations are always welcome. [](https://github.com/diego-ninja/granite)
https://redd.it/1kt2w57
@r_php
Just released Granite, a lightweight PHP library that makes building type-safe, immutable DTOs and Value Objects a breeze.
Granite is a zero-dependency PHP 8.3+ library for creating immutable objects with validation.
**Main features:**
* ✅ **Zero dependencies** \- Pure PHP 8.3+
* ✅ **Attribute-based validation** \- Use PHP 8 attributes right on your properties
* ✅ **Immutable by design** \- All objects are read-only and type-safe
* ✅ **Smart serialization** \- Control property names and hide sensitive data
* ✅ **Auto type conversion** \- DateTime, Enums, nested objects just work
* ✅ **Built-in AutoMapper** \- Map between different object structures effortlessly
* ✅ **Performance optimized** \- Reflection caching under the hood
Perfect for APIs, domain models, and anywhere you need bulletproof data objects.
**Install:** `composer require diego-ninja/granite`
**Repo:** [https://github.com/diego-ninja/granite](https://github.com/diego-ninja/granite)
Comments, ideas, and collaborations are always welcome. [](https://github.com/diego-ninja/granite)
https://redd.it/1kt2w57
@r_php
GitHub
GitHub - diego-ninja/granite: A simple library to build immutable and serializable objects
A simple library to build immutable and serializable objects - diego-ninja/granite
Open-source Laravel and Filament Indie Page portfolio
https://github.com/EntroSolutions/creator-products-showcase
https://redd.it/1kt1rfz
@r_php
https://github.com/EntroSolutions/creator-products-showcase
https://redd.it/1kt1rfz
@r_php
GitHub
GitHub - EntroSolutions/creator-products-showcase: Show case your products with this Laravel and Filament project https://devco.solutions/
Show case your products with this Laravel and Filament project https://devco.solutions/ - EntroSolutions/creator-products-showcase
New in Symfony 7.3: New Bridges and Improved Integrations
https://symfony.com/blog/new-in-symfony-7-3-new-bridges-and-improved-integrations?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kte1fz
@r_php
https://symfony.com/blog/new-in-symfony-7-3-new-bridges-and-improved-integrations?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kte1fz
@r_php
Symfony
New in Symfony 7.3: New Bridges and Improved Integrations (Symfony Blog)
Symfony 7.3 introduces new bridges and improves existing integrations with services like Amazon SES, Beanstalkd, Redis, and more.
PHPUnit website redesign: a new look for a historic tool
Hi PHP devs,
I'm currently working on redesigning PHPUnit's official website. A must for our projects, but let's face it: its site was no longer up to scratch.
* Modernized interface
* Revamped user experience
* Landing page generated with the help of AI to test a faster, iterative and responsive approach
The main content (the doc) is now elsewhere, so we had to rethink the very function of the site: inform, orient, reassure.
👉 New site : [https://phpunit-restyle-project.lovable.app/](https://phpunit-restyle-project.lovable.app/)
Your feedback is welcome: bugs, suggestions, or even harsh criticism. I'll take it all!
https://redd.it/1ktebpk
@r_php
Hi PHP devs,
I'm currently working on redesigning PHPUnit's official website. A must for our projects, but let's face it: its site was no longer up to scratch.
* Modernized interface
* Revamped user experience
* Landing page generated with the help of AI to test a faster, iterative and responsive approach
The main content (the doc) is now elsewhere, so we had to rethink the very function of the site: inform, orient, reassure.
👉 New site : [https://phpunit-restyle-project.lovable.app/](https://phpunit-restyle-project.lovable.app/)
Your feedback is welcome: bugs, suggestions, or even harsh criticism. I'll take it all!
https://redd.it/1ktebpk
@r_php
phpunit-restyle-project.lovable.app
PHPUnit - The PHP Testing Framework
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
Psalm Plugin for Markdown Reports
Hai PHP devs,
just released a small plugin for psalm, that creates a Markdown report.
I am using it to pusblish reports as pull request comments on github. See an example output
Maybe someone finds it useful too...
bye
https://redd.it/1ktx5m1
@r_php
Hai PHP devs,
just released a small plugin for psalm, that creates a Markdown report.
I am using it to pusblish reports as pull request comments on github. See an example output
Maybe someone finds it useful too...
bye
https://redd.it/1ktx5m1
@r_php
GitHub
GitHub - zolex/psalm-markdown-report
Contribute to zolex/psalm-markdown-report development by creating an account on GitHub.
Is MySQL Future-Proof for Laravel Projects❔
I've had a long relationship with MySQL, It's my favorite database but it doesn't seem to be evolving fast enough.
Recently, I was asked to add semantic search to a legacy Laravel e-commerce project. The project is built as a large monolith with numerous queries, including many raw SQL statements, and it uses MySQL with read/write replicas.
During my research, I found that MySQL doesn't natively support vector search, which is essential for implementing semantic search. This left me with the following options:
* **Store embeddings as JSON (or serialized format) in MySQL and implement the functionality in PHP ❌**: This would involve pulling all relevant DB records and iterating over them in memory. It's likely not a viable option due to performance and memory concerns.
* **Migrate the database to a vector-search-compatible DB like PostgreSQL ❌**: This is risky. The lack of comprehensive test coverage, the presence of many raw queries (which might need syntax changes), and the overall complexity of the current architecture make this a difficult path.
* **Use an external vector database like Qdrant specifically for semantic search ✅**: This is probably the safest and most modular solution, though it comes with additional infrastructure and cost considerations.
I couldn't find a perfect solution for the current system, but if it were already using PostgreSQL, adopting semantic search would have been much easier.
So Should we consider PostgreSQL over MySQL for future projects (may not relevant to small projects), especially considering future needs like semantic search❔ Or am I overlooking a better alternative❓
https://redd.it/1ku5ozh
@r_php
I've had a long relationship with MySQL, It's my favorite database but it doesn't seem to be evolving fast enough.
Recently, I was asked to add semantic search to a legacy Laravel e-commerce project. The project is built as a large monolith with numerous queries, including many raw SQL statements, and it uses MySQL with read/write replicas.
During my research, I found that MySQL doesn't natively support vector search, which is essential for implementing semantic search. This left me with the following options:
* **Store embeddings as JSON (or serialized format) in MySQL and implement the functionality in PHP ❌**: This would involve pulling all relevant DB records and iterating over them in memory. It's likely not a viable option due to performance and memory concerns.
* **Migrate the database to a vector-search-compatible DB like PostgreSQL ❌**: This is risky. The lack of comprehensive test coverage, the presence of many raw queries (which might need syntax changes), and the overall complexity of the current architecture make this a difficult path.
* **Use an external vector database like Qdrant specifically for semantic search ✅**: This is probably the safest and most modular solution, though it comes with additional infrastructure and cost considerations.
I couldn't find a perfect solution for the current system, but if it were already using PostgreSQL, adopting semantic search would have been much easier.
So Should we consider PostgreSQL over MySQL for future projects (may not relevant to small projects), especially considering future needs like semantic search❔ Or am I overlooking a better alternative❓
https://redd.it/1ku5ozh
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Docker Blue Green Strategy Sample for Laravel
https://github.com/patternhelloworld/docker-blue-green-runner?tab=readme-ov-file#how-to-start-with-a-php-sample-https-self-signed-ssl
https://redd.it/1kudy3r
@r_php
https://github.com/patternhelloworld/docker-blue-green-runner?tab=readme-ov-file#how-to-start-with-a-php-sample-https-self-signed-ssl
https://redd.it/1kudy3r
@r_php
GitHub
GitHub - patternhelloworld/docker-blue-green-runner: By simply configuring the .env file, a safe isomorphic Blue-Green Deployment…
By simply configuring the .env file, a safe isomorphic Blue-Green Deployment is instantly set up. - patternhelloworld/docker-blue-green-runner
Is Symfony only encouraged to learn if you're building enterprise web apps with medium-large teams or is it also ideal for the average freelancer or tiny agencies?
Trying to figure out what stack me and my developer buddy should get into in PHP Land. I'm a bit worried about picking Laravel because it might be too opinionated to learn development more properly. So I've been leaning more towards Symfony since everyone pretty much loves it. Thoughts?
https://redd.it/1kugy6a
@r_php
Trying to figure out what stack me and my developer buddy should get into in PHP Land. I'm a bit worried about picking Laravel because it might be too opinionated to learn development more properly. So I've been leaning more towards Symfony since everyone pretty much loves it. Thoughts?
https://redd.it/1kugy6a
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Idk who needs this but i made an app for rendering and sharing twig templstes easily
The company i am working on uses twig templates for mails with a pretty shitty in house application. With no dev friendly ui.
So i decided to create a twig html renderer for designing content easily.
If this might help anyone here's the link - https://twig-html-editor.vercel.app/
https://redd.it/1kun6sj
@r_php
The company i am working on uses twig templates for mails with a pretty shitty in house application. With no dev friendly ui.
So i decided to create a twig html renderer for designing content easily.
If this might help anyone here's the link - https://twig-html-editor.vercel.app/
https://redd.it/1kun6sj
@r_php
A Week of Symfony #960 (May 19–25, 2025)
https://symfony.com/blog/a-week-of-symfony-960-may-19-25-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kuy4jw
@r_php
https://symfony.com/blog/a-week-of-symfony-960-may-19-25-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kuy4jw
@r_php
Symfony
A Week of Symfony #960 (May 19–25, 2025) (Symfony Blog)
This week, development activity focused on putting the final touches on Symfony 7.3 in preparation for its stable release next week. In addition, we published a security fix for a potential vulnerabil…
Good tutorials for fullstack applications or using php as a backend
I was wondering does anyone have a good tutorial to recommend that creates a php fullstack or backend application.
https://redd.it/1kuysxh
@r_php
I was wondering does anyone have a good tutorial to recommend that creates a php fullstack or backend application.
https://redd.it/1kuysxh
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Is it finally time to move from XAMPP to Docker for PHP dev? I wrote up my experience.
I started learning PHP with XAMPP over 10 years ago and funny enough, during a recent semester in my Computer Science studies, we were still using XAMPP to build backend projects.
That got me thinking: is XAMPP still the right tool in 2025? So I decided to compare it with Docker, and documented the whole process in a blog post.
The article walks through:
Why XAMPP feels outdated for modern workflows
How Docker solves environment consistency and scalability
Step-by-step setups for PHP with MariaDB & phpMyAdmin
A more advanced example using MongoDB with dev/prod Docker builds
I kept it practical and included code examples you can run locally.
📝 Here’s the post:
https://simonontech.hashnode.dev/from-xampp-to-docker-a-better-way-to-develop-php-applications
Would love to hear your thoughts - especially if you're still using XAMPP or just switching to Docker now.
https://redd.it/1kv24oq
@r_php
I started learning PHP with XAMPP over 10 years ago and funny enough, during a recent semester in my Computer Science studies, we were still using XAMPP to build backend projects.
That got me thinking: is XAMPP still the right tool in 2025? So I decided to compare it with Docker, and documented the whole process in a blog post.
The article walks through:
Why XAMPP feels outdated for modern workflows
How Docker solves environment consistency and scalability
Step-by-step setups for PHP with MariaDB & phpMyAdmin
A more advanced example using MongoDB with dev/prod Docker builds
I kept it practical and included code examples you can run locally.
📝 Here’s the post:
https://simonontech.hashnode.dev/from-xampp-to-docker-a-better-way-to-develop-php-applications
Would love to hear your thoughts - especially if you're still using XAMPP or just switching to Docker now.
https://redd.it/1kv24oq
@r_php
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/1kv7dl4
@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/1kv7dl4
@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.
Looking for a symfony 7/doctrine many to many tutorial
I'm looking for a symfony 7/doctrine many to many relationship tutorial. I'm VERY new to symfony and doctrine (I've used laravel) so I'd love some hand-holding. Everything I've found is old or not detailed.
I really appreciate it!
https://redd.it/1kv7pvz
@r_php
I'm looking for a symfony 7/doctrine many to many relationship tutorial. I'm VERY new to symfony and doctrine (I've used laravel) so I'd love some hand-holding. Everything I've found is old or not detailed.
I really appreciate it!
https://redd.it/1kv7pvz
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Splitting Horizon Processes across multiple servers?
Hi folks!
I have a small web app that runs on a tiny Hetzner server and having just checked the CPU, it was pinned at 100% and with a lot of jobs left in the queue, that's a problem. (4 processes currently)
I want to take this as an opportunity to learn about splitting up Horizon so that it can effectively spread the jobs across multiple servers at once.
I'm using Ploi, and there's a server option called "Worker server" but I'm a little bit confused about why it requires a second instance of my application to run. I understand the worker server needs access to the first server's Redis.
My jobs are IO bound and they make HTTP requests. I was tempted to upgrade the server's resources but I know I'd eventually run into rate limiting if all the jobs are being processed on one machine.
This is a concept I've always found interesting, but I've always struggled to wrap my head around how to configure something like this. I imagine it's mostly straightforward once you've done it once.
https://redd.it/1kvavoc
@r_php
Hi folks!
I have a small web app that runs on a tiny Hetzner server and having just checked the CPU, it was pinned at 100% and with a lot of jobs left in the queue, that's a problem. (4 processes currently)
I want to take this as an opportunity to learn about splitting up Horizon so that it can effectively spread the jobs across multiple servers at once.
I'm using Ploi, and there's a server option called "Worker server" but I'm a little bit confused about why it requires a second instance of my application to run. I understand the worker server needs access to the first server's Redis.
My jobs are IO bound and they make HTTP requests. I was tempted to upgrade the server's resources but I know I'd eventually run into rate limiting if all the jobs are being processed on one machine.
This is a concept I've always found interesting, but I've always struggled to wrap my head around how to configure something like this. I imagine it's mostly straightforward once you've done it once.
https://redd.it/1kvavoc
@r_php
Ploi
Worker server
The worker server is meant for running PHP background tasks, such as queues.