PHP Reddit – Telegram
PHP Reddit
34 subscribers
289 photos
37 videos
24.8K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Longhorn PHP full schedule

Hey y'all - just wanted to share that the full schedule is now online for this year's Longhorn PHP:

https://longhornphp.com/

The conference is October 23-25 in Austin, TX. We have virtual ($75) and in-person ($250-$350) ticket options.

https://redd.it/1niuz2k
@r_php
Existing Laravel app now needs an API

Hey all

I build a Laravel app with Inertia for a client a couple of years back and it's still working perfectly. My client now wants a mobile app as part of the solution which will need to access the data.

So...add an API with JWT to the existing project and make use of services to share code, or create a separate API project accessing the same database or something else?

I'm sure others have faced this issue so interested to hear what swayed the decision.

Cheers.

https://redd.it/1njgct3
@r_php
Laravel MultiTenant, MultiDatabase (JOBS)

Bom, estou desenvolvendo um cardápio online totalmente em Laravel. A aplicação já estava praticamente pronta, mas tive a ideia de transformá-la em multi-tenant. Grande parte já está funcionando, porém me deparei com um problema.

Tenho um banco principal, que vou chamar de "Principal", e os bancos dos tenants: "Tenant1", "Tenant2", e assim por diante. Estou utilizando filas do Laravel porque também uso WebSocket (Laravel Reverb), além da integração com WhatsApp via Twilio.

Centralizei todos os jobs na tabela do banco Principal, ou seja, todos os jobs de todos os tenants são enfileirados lá. Como a aplicação é um cardápio, ela não precisa ser 100% em tempo real, então esse modelo faz sentido.

O problema é que, quando envio um job para disparar mensagens no WhatsApp, a aplicação não consegue se conectar ao banco do tenant. Esse job chama um service responsável pelo envio.

Alguém aqui já trabalhou com filas em sistema multi-tenant no Laravel e poderia me dar uma luz?

https://redd.it/1njp5nf
@r_php
Any plans for proper PHP gRPC server support in 2025?

My organisation is looking at gRPC for internal service communications in place of our existing REST/GraphQL calls. But what’s holding us back from moving towards this direction is we have several PHP mature services that we actively maintain.

Given we have the PHP foundation established, gRPC is a feature I feel that is missing in today’s modern PHP toolkit that isn’t discussed about often, especially with it gaining popularity over the years. There’s full support running gRPC servers in other languages but not PHP.

Is this something that is on the radars of the PHP foundation? Or is the only way is to adopt 3rd party/community developed solutions which seems more like a workaround?

I’m talking about 3rd party plugins like https://github.com/khepin/php-grpc-server-notes which needs to run on RoadRunner, which aren’t actively maintained.

https://redd.it/1nk3paj
@r_php
PDFAI - A simple library for extracting data from PDFs for large language models

Hi /r/PHP,

I just published a new, simple, low dependency PHP library for extracting text and rasterizing PDF pages using the Poppler command line tools.

You can find out about it here:

https://github.com/1tomany/pdf-ai

It's perfect if you're building any type of RAG system, or just need a way to rasterize PDF pages to display as thumbnails. The extractors take advantage of generators so extracting multiple pages should be performant and light on memory.

I also released a Symfony bundle that uses a pattern I'm calling Action-Request-Response (I'm sure it has an actual name - please let me know if so). Instead of accessing the client directly, you create a request that is sent to a client which processes the request and sends back a response. This makes testing much easier because you can swap out the actual client implementation with a mock implementation without changing any of your business logic.

You can see it in action here:

https://github.com/1tomany/pdf-ai-bundle

This pattern can be used with the standalone library, you'll just be responsible for creating a container of extractors, injecting them into the factory, and using the factory to create the extractor.

Would love your feedback!

https://redd.it/1nk54tj
@r_php
We wanted to upgrade our Laravel 5.8 project to the latest version but first we needed strongly typed data classes with support for validating properties using Laravel's validation rules, as well as creating nested structures so I wrote this class and published in case it might be useful to someone.

This is meant to be used before you upgrade Laravel to a high enough version. After you do, you can start using `spatie/laravel-data` and remove this.

https://github.com/gigabites19/old-laravel-typed

https://redd.it/1nk9729
@r_php
Looking for TWIG PHP developer

I'm looking for TWIG PHP developer to help fix existing website issues between frontend and and admin backend if anyone could or take the gig

https://redd.it/1nkh6yv
@r_php
dumpall: A Simple CLI to Aggregate Laravel Files for Reviews & AI Workflows 🐱💻

Hey r/laravel! 👋 As a Laravel dev, I've wasted hours manually grabbing files from modules or migrations for reviews or AI prompts—tabs everywhere, context lost! 😩 So, I built **dumpall**, a lightweight CLI that dumps your Laravel project files into clean Markdown (fenced blocks with paths). It's Unix-simple, like cat for directories, and great for Artisan-heavy setups.

**5 Laravel use cases that save my sanity:**

* 🛠️ **Module Sharing**: Dump a full module (e.g., Modules/User/) for team/AI reviews—no folder-hopping.
* 🤖 **Feature Planning**: Aggregate Models & routes, paste to AI for new endpoints like past ones.
* 🐛 **Migration Debug**: database/migrations/ in one go—spot schema issues fast.
* 📦 **Config Archiving**: Combine config/ & Artisan files for audits/handovers.
* 🔍 **Model Refactoring**: Pull Models/ + Traits/ for AI-optimized suggestions.

Try it in your Laravel project:

npx dumpall . -e vendor -e node_modules --clip

It's open-source: 🌐 [dumpall.pages.dev](https://dumpall.pages.dev/) | 📦 [github.com/ThisIsntMyId/dumpall](https://github.com/ThisIsntMyId/dumpall). Feedback welcome—what Laravel workflow would you use this for? Let's iterate! 🚀

https://redd.it/1nkufx6
@r_php
Who's hiring/looking

This is a bi-monthly thread aimed to connect PHP companies and developers who are hiring or looking for a job.

Rules

No recruiters
Don't share any personal info like email addresses or phone numbers in this thread. Contact each other via DM to get in touch
If you're hiring: don't just link to an external website, take the time to describe what you're looking for in the thread.
If you're looking: feel free to share your portfolio, GitHub, … as well. Keep into account the personal information rule, so don't just share your CV and be done with it.

https://redd.it/1nkxkon
@r_php
Hi

I posted here before about my problem as an intery level and I depend a lot on ai to code:) also I guess I lack the basics so, help me by giving me like a good roadmap/course/book that helped you through the php/laravel stack…
So that I stop vibe coding cause I really hate that and I am really trying

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