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
TIL Trump Mobile (Donald Trump's new carrier service) has a website that is built with Laravel, Livewire and Filament.

As I'm sure you've heard, Trump Mobile is a thing now and I decided to check out their website earlier.

Other than the amusing 500 errors when you try to reset an account email that doesn't exist, and the multitude of errors from YouTuber's that have tested out the platform with an account.

I found out that Trump Mobile clearly uses Filament by navigating to the admin url (https://www.trumpmobile.com/admin) and has livewire stuff happening on the main site as well.

This isn't meant to be political, I just found it amusing that the site clearly uses Laravel and how clunky and untested the website is.

https://redd.it/1lm0i0h
@r_php
What's your favorite PHP feature?

For me I really love reflection. I recently had to use the reflection api to handle serializing custom pre <php7 class-based enums as well as new native php8 enums at the same time, the reflection api (and *BackedEnum* interface) made this a breeze. I can see how you could make some really powerful frameworks with how powerful reflection is and it only makes me wonder why it isn't a staple of every language.

https://redd.it/1lm0qhc
@r_php
Casually achieving 600 req/s with a very simple PHP only WLP theme (PHP Swoole with Mostly Wordpress Compatible)

It seems PHP Swoole really takes PHP to the next level. This is even with some database calls. I can't post an image here, but for more info see r/WhitelabelPress

https://redd.it/1lm2v0a
@r_php
How much do we really need many tools we use ?

Hello,

I'm PHP developer since 2009. I worked on websites and pure backend. Always with heavy traffic and volumetry of data to manage.

Here a list of framework/tools/library I used:
- Symfony framework with some component (Cache, Serializer, HttpClient, Messenger)
- API Plateform
- Doctrine ORM
- React Admin

All of them seems great but... Do I/we really need them ? Are we using them because we need them or because:
- they were here before us in our current job ?
- we don't know how to do without them ?
- some people in events said it was great so it should be true ?
- we didn't master the basics so we try to dodge our weakness ?

At my job, we removed Api Plateform. Because it is not so difficult and it does not take so much time to implement our endpoints with Symfony 7. Less configuration to maintains, less magic code executed, less bugs from space, less time lost.

We also replaced Doctrine ORM by Doctrine DBAL. We write directly our request in SQL. More convenient to read, debug, check performance issue (EXPLAIN, EXPLAIN ANALYSE with pgsql). Entities are hydrated manually. Yes it take a little time to write the code which hydrate ann entity from a PHP array, but less configuration, less magic bugs, less over generic code managing all possible cases we don't have. We directly know what exactly is happening, better performance.

Do you really feel something similar ?

https://redd.it/1lm4tai
@r_php
I wanted to share a project I've been working on

I created it to solve a common problem: processing large datasets (gigs of CSV, JSON, etc.) in a language like PHP without the noscript crashing due to memory exhaustion. The solution was to build the entire processing pipeline around PHP's Generators, which allows data to be handled one record at a time in a streaming fashion.

I was heavily inspired by the fluent and expressive syntax of libraries like .NET's LINQ and Laravel's Collections, so I focused on making the API as clean and readable as possible.

I any of you are interested here is the link to the repo:

https://github.com/zepzeper/torol

https://redd.it/1lmkdpl
@r_php
I build a Flexible Business Application System in Symfony

I just want to bring your attention to one of my work👇

PrestoFox is a Flexible Business Application System that has collection of components that is need for build an application of any complexity.

It has built its multi-tenant architecture. Using PrestoFox one can build any kind of app like PWA, Web App, iOS app, Android app, desktop app, or browser plugin using a single code base.

It has components like custom fields, workflows, authentication, multi-tenancy, configuration system, reports, dashboard, permission system , import and export , attachment, data audit logs, pick list management, data grids and filters, search, GraphQL API, security, API call rate limiting , notifications, queue System, job scheduling, background job logging, data fixtures, data populators, translations, component health check end points, data validations etc.

This components work together in PrestoFox to make the strong foundation for the application that gets built on top of it. All these components make use of MIT Licensed Open Source solutions like Symfony , Vue JS , PostgreSQL etc


I have already built 5+ SaaS Products and 3+ internal business applications using it.

I am happy to answer any questions.

https://redd.it/1lmnf58
@r_php
What should I expect in a 2-hour Symfony Backend Engineer technical interview?

Hey folks,

I have a 2-hour technical interview coming up with a CTO for a Symfony Backend Engineer position. It's a senior-level role, and I’d love to hear from anyone who's had similar long-format interviews.

What should I expect during these 2 hours?

Do they usually focus on deep architectural questions?
Is live coding involved?
How much of it is about Symfony core (like services, events, voters, Messenger)?
Do they dive into Doctrine internals or real project debugging?

Also:

How can I best prepare to make the most of the time?
Any questions I should ask them at the end?

Appreciate any tips, experiences, or resources 🙌

https://redd.it/1lmxgmr
@r_php
I offer intro to Computer Programming Class. This is my Syllabus

Just wanted to share my syllabus for the class (you can even call it a bootcamp, that’s fine)

As an educator, or a student or a developer…what do you think? Do you think it’s solid? Any improvements? Should I add or omit anything.

Thanks in advance

Here it is: https://www.figma.com/proto/OpYXeDpozG4CPae139TEna?node-id=1-2&locale=en

https://redd.it/1ln5x0p
@r_php
Symfony AI Context Bundle (beta)

🚀 **\[Beta Release\] Symfony AI Context Bundle** 🤖

I'm excited to announce the first **beta** of the [Symfony AI Context Bundle](https://github.com/ai-context-lab/symfony-ai-context-bundle) — a developer tool that automatically generates a structured, AI-ready JSON file from your Symfony application.

# 🧠 What's it for?

This bundle extracts key information from your project:

* Entities (fields, associations)
* Services (methods & types)
* Controllers and routes
* Repositories
* Events
* Forms

The goal is to **feed this context file into ChatGPT or any LLM**, to get accurate and contextualized answers about your project.

# 🔧 Example usage with ChatGPT

Once you've generated the `ai-context.json`, paste it into ChatGPT (or use a custom GPT) and try prompts like:

`Give me an overview of this Symfony project.`
`Can you explain what the RandomNameService does?`
`List all the form types used and their data classes.`
`How does App\Controller\RandomController::new() work?`
`Generate a README for this app.`

It makes working with large Symfony codebases much more intuitive and AI-assisted.

# 🚀 Quickstart

composer require ai-context/symfony-ai-context-bundle --dev
php bin/console ai-context:generate

This command generates a single JSON file containing all the structural data of your app — perfect for AI tools or static analysis.

# ⚠️ Beta notice

This is a **beta release**, and I’m actively looking for feedback 🙏
If you try it, please let me know:

* Is it useful for your use case?
* What extractors are missing?
* Would you want more advanced prompts or integrations?

🔗 GitHub: [https://github.com/ai-context-lab/symfony-ai-context-bundle](https://github.com/ai-context-lab/symfony-ai-context-bundle)
🐘 Packagist: [https://packagist.org/packages/ai-context/symfony-ai-context-bundle](https://packagist.org/packages/ai-context/symfony-ai-context-bundle)

Thanks for trying it out!

https://redd.it/1lnafmt
@r_php
MCP Server for Laravel Codebases – Let your AI agents query your codebase like a database, directly inside Cursor, Windsurf, Claude Code etc...
https://redd.it/1lngh4p
@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/1lnjnqd
@r_php
I build my own Json parser using php

I found this cool challenge on John Crickett Coding Challenges, and when I checked the solutions, not a single one was in PHP. PHP is powerful, and it deserves more love in the low-level space too. So I took it personally and decided to solve this challenge in PHP.

🔗 https://github.com/DanielHemmati/json-parser-in-php/


Also, leave a if you liked it!

https://redd.it/1lnnkt9
@r_php
My experience with Laravel Cloud after 4 months

Wanted to share my experience with Laravel Cloud after using it for a startup.

For context, I’ve been working with Laravel professionally since 2017. At work, we ran everything using Docker Compose on a single DigitalOcean box for years. Eventually we outgrew that setup and moved to AWS and now everything’s on ECS Fargate and EC2.

When I started a new side project a few months ago, I didn’t want to deal with the overhead of setting up ECS again, so I figured I’d try out Laravel Cloud. At first, I was super impressed. The UX was clean, and spinning up a new environment was dead simple. I was paying under $10/month while developing, and that felt totally reasonable.

But once I launched the app publicly, the costs started to balloon fast. My last invoice included $155 just for bandwidth, and I don’t have anything crazy running (screenshots below if you’re curious). The monthly bill just kept climbing with no real clarity on what exactly was driving the cost.

Honestly, I don’t know who this service is supposed to be for. If you’re a small to mid-sized team, this pricing model just doesn’t work and you’d burn through your budget in no time. And if you’re a bigger company, you probably already have the resources to just manage things directly on AWS.

I’ve since moved everything over to Forge + Hetzner and am running on a $60/month machine. Way more predictable and manageable.

Laravel Cloud has a lot of potential. I’d love to see it become a standard for Laravel hosting, but not unless they seriously revisit their pricing model.

https://preview.redd.it/aqc3jl77ey9f1.png?width=1418&format=png&auto=webp&s=b1262283834fc60b6f35787adec4d27a4074f1e6

https://preview.redd.it/tkkavl77ey9f1.png?width=1078&format=png&auto=webp&s=5be0a808c1e931ab30a1d258db6e4d8a897c19d5

https://preview.redd.it/4g7w8o77ey9f1.png?width=1094&format=png&auto=webp&s=70ab6590695b2fc9cb1c60bb2d8170df48f2ab55

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