PHP Reddit – Telegram
PHP Reddit
34 subscribers
291 photos
37 videos
24.9K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
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
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
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
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
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
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
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
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
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
Multiple Horizon Instances?

Does anyone have experience running multiple Horizon servers? I'm curious what complexities and/or limitations you run into.

Just to be clear, I'm not talking about separating web and queue servers, this is a step beyond that.

I'm curious about intentionally single-threaded queues, cross-instance job locking, and generalized scalability of multiple horizon instances.

What have your guys' experience been?

https://redd.it/1kvgzte
@r_php
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/1kvk9zp
@r_php
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/1kvn2q8
@r_php
Optimized PHP Images for Laravel

# 🚀 Optimized PHP Images for Laravel! 🐳

Hey Laravel devs! I’ve built PHP-Optimized Docker Images for Laravel 10-12, hosted on GHCR (ghcr.io/redfieldchristabel/laravel). 🐘 These images are fine-tuned for performance, security (non-root laravel user), and follow Docker best practices (one process per container, stdout logs). Includes pre-installed PHP extensions and a scaffolding noscript for easy setup! 😄

laravel container registry

https://redd.it/1kvy6me
@r_php