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
How I can make doctrine:migrations:diff generate only sql files instead of migrations?

Usually `doctrine:migrations:diff` generate a migration noscript but instead of running them as is we only ghet the diff for the db and manually execute the queries one-by-one what I want is to modify this logic in order to generate sql files instwad of migrations noscript only for the `up` .

In other words I want to generate only raw sql for the diff instead of generating migration noscripts. How can do this?

https://redd.it/1kreyi5
@r_php
Senior Symfony Developer (15+ Years Exp) Seeking New Opportunities — Remote/Contract

Hi r/symfony! 👋

(Yes, I got help from an LLM to summarise my intention)

I’m Emre, a Senior Fullstack Developer with 15+ years of deep PHP/Symfony expertise, and I’m currently exploring new opportunities. If your team needs someone who can architect complex systems, lead projects, or modernize legacy codebases—let’s chat!

Why I love Symfony:

* Built scalable platforms like TRT News (42 multilingual subsites), Sylius-based e-commerce (Bilimkutusu.com), and academic journal systems (Dergipark).
* Contributed to Symfony’s ecosystem as an open-source maintainer and PHP community organizer (founder of AnkaraPHP).
* Ran workshops and conference talks on Symfony best practices (check my [YouTube](https://youtube.com/@delirehberi) for proof 😄).

What I’m looking for:

* Remote roles (open to contracts or full-time).
* Symfony-centric backend work, API development, or fullstack projects (React/Vue/Node.js).
* Teams passionate about clean code, DevOps (Docker, AWS/GCP), or innovative PHP tooling.

My GitHub/LinkedIn:

* [GitHub](https://github.com/delirehberi) (open-source contributions)
* [LinkedIn](https://linkedin.com/in/delirehberi)
* Resume: [emre.xyz/resume.pdf](https://emre.xyz/resume.pdf)

Bonus: I’m also a functional programming nerd (Haskell!), love mentoring junior devs, and have a knack for migrating legacy systems to modern Symfony setups.

If you’re hiring or know someone who is, feel free to DM or comment below. Happy to share war stories about debugging Symfony apps or discuss why Nix + Symfony is a match made in heaven! 🚀

Thanks for being an awesome community—keep making PHP beautiful!

P.S. Open to relocation (EU-friendly) or freelance projects. Let’s build something great! 💻

https://redd.it/1krwm10
@r_php
Post reactions management and storage

Hi everyone,

For a cms solution, how to manage reactions on a post ? (Like, dislike, love, etc) in a scalable way ? Since each reaction is at a least write query then an update to a counter etc.

What database ? Or queue system do i need to manage it effectively?

https://redd.it/1ks3lrj
@r_php
I made a ORM named LiliDb taking advantage of Php modern features

Hello everyone at Php community, this post is a self-promotion for something I had made because I didn't like another ORM for Php (Doesn't uses Php modern features) and it will be awesome if somebody gives a try and make a feedback 😄

https://github.com/sebastianguzmanmorla/LiliDb

https://packagist.org/packages/sebastianguzmanmorla/lili-db

https://redd.it/1ksi8hg
@r_php
RANT: Can't Really Understand The JS Fanatics

They say in JS you can do front-end, back-end as well as mobile apps if needed all in JS. Is it really?

For every single thing, you need to learn something from the ground up. React's architecture and coding style is completely different than how Express works. I know I am comparing apples to oranges by comparing front end to back end. But the architecture do change right, unlike what JS fanatics claim that you can do it all in JS. They change so much that they feel like these frameworks are completely a different language. Where is the same JS here except for basic statements?

If they can understand to do so many different frameworks within JS, they might as well learn a new language as everything changes completely within JS from framework to framework.

https://redd.it/1kskbzf
@r_php
Prevent "out of memory" when I want list of many files

I have many many files at one folder, around 500.000 files. I want to list them, but server has not many memory to list all of files. Is there a way to list all files step by step by paging?

https://redd.it/1kskvxj
@r_php
Why are twig variables supposed to be snakedcase

Twig recommends to name variables in snake
case 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
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
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