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
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
Send a WhatsApp Message with Just a 3 Lines of PHP

**Send WhatsApp Messages with Just 3 Lines of PHP (No Twilio, No Complexity)**

If you're a PHP dev and want to send WhatsApp messages effortlessly, this is probably the cleanest way to do it.

All it takes is 3 lines (once Guzzle is installed):

phpCopyEdit$client = new \GuzzleHttp\Client();
$response = $client->post('https://www.wasenderapi.com/api/send-message', [
'headers' => ['Authorization' => 'Bearer YOUR_API_KEY', 'Content-Type' => 'application/json'],
'json' => ['to' => '+1234567890', 'text' => 'Hello, here is your update.']
]);
echo $response->getBody();


* No SDKs
* No bloated libraries
* Just drop it into any Laravel, Symfony, or plain PHP project

https://redd.it/1kw175a
@r_php
Symfony/Doctrine Randomly Deleting Data

I'm very new to symfony/doctrine so I'm probably doing something stupid. Sometimes (seemingly at random) data just disappears from my mysql database. Does anyone have any idea what might be happening?

Maybe I'm using the entity manager interface incorrectly? Most of the time everything works fine.

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