PHP Reddit – Telegram
PHP Reddit
34 subscribers
294 photos
39 videos
25K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Are you using Leaf PHP?

While I like Laravel, I feel it's just too bloated for every project. I started using Leaf PHP, love it! clean API, lean and you can bring in Laravel stuff when needed.

Compared to the big two Laravel and Symfony, there's not much mention of other PHP frameworks.

Are you using Leaf? and can you describe the nature of your app. e.g. "Hobby", "Commercial with 10k users" etc...

Feel free to elaborate on why you prefer leaf and any other thoughts you may have on it.

Thanks!

https://redd.it/1qwouxa
@r_php
Preparing for the job

Hello!

In three weeks I start with my first fulltime job as a backend PHP dev. I have some experience with Symfony at an internship/summer job. But to prepare for the job ahead I want to take these weeks to get some hands on experience again with PHP/Symfony.

I was thinking of creating a cool useful composer package from which I can learn a lot! Maybe something that Symfony/PHP/Composer is now missing. Anyone got cool ideas? Or any other ideas on how I can prepare myself for the job ahead? Maybe cool projects?

Thanks in advance!

https://redd.it/1qwrafh
@r_php
Symfony Components Tutorial

Is there any good tutorial about using Symfony Components in a PHP Project without necessarily using the entire Symfony Framework? Better still, on creating a framework from scratch out of Symfony components. Thanks.

https://redd.it/1qx2zyv
@r_php
Oracle - Passing null to parameter #X of type string is deprecated

I'm not a fan of not being able to pass nulls to some functions that expect strings, for example, trim(). I think being able to pass nulls to trim() would be a helpful language feature.

One specific example: Oracle treats empty strings as null. So, when I get a row from the database, the fields that I set to empty strings will be in the row array I get back. In the future, if I called strpos() on this null field, it will be a fatal error. I believe this only serves to make things more difficult and does not prevent any other errors.

Another example: a form where different users see different fields, but whatever text they type in will be run through trim(). A null is as good as an empty string to me in that case.


Is this a fair argument? Why or why not? I'm trying to understand the philosophy behind this language decision.

https://redd.it/1qx4m91
@r_php
Does Laravel AI SDK possess agent orchestration facilities?

I am reading the documentation and can't see anything along these lines.

https://redd.it/1qxfnv4
@r_php
Laravel NestedSet: Query tree structures efficiently

Hi r/php

We are proud to announce the availability of the aimeos/laravel-nestedset package, an improved version of the most popular Laravel/PHP package ([kalnoy/](https://packagist.org/packages/kalnoy/)nestedset) using nested sets for managing trees which, unfortunately, have been virtually abandoned by its owner.

Repo: [https://github.com/aimeos/laravel-nestedset](https://github.com/aimeos/laravel-nestedset)

The 1.0 release contains:

* Bugfix PRs from the original repo
* Support for UUID and custom ID types
* Full support for SQL Server
* PHPUnit 11/12 support
* Improved documentation

There's now a web site available for the documentation too:

[https://laravel-nestedset.org](https://laravel-nestedset.org)

We will continue supporting the package and if you like it, leave a star :-)


https://redd.it/1qxiwpg
@r_php
Is Openswoole in maintenance mode and it's better to use regular Swoole?

As far as I can tell, openswoole's last commit to github was just adding php 8.4 support last year. Meanwhile swoole/swoole-src seems very actively developed. Which is strange considering in this sub I've always found people saying openswoole is more actively developed and it's future seems brighter than regular swoole.

https://redd.it/1qxpibx
@r_php
In 2026, what's the best way to handle building assets for deployment?

For the longest time I always ran npm ci && npm run build as part of the deployment noscript (via Forge, Ploi etc) but I would end up with deployments taking anywhere from 35-50 seconds, most of it being due to the asset building and I got really tired of it.

Earlier today I took out public/build from the .gitignore, committed the public/buildassets and setup a GitHub actions workflow that would build the assets for me. I'm indecisive if I like the idea of committing "dynamic" files to a repository. Addititionally I'm concerned about forgetting about asset compilation, building them locally and running into weird git merge conflicts. (although I'm not sure if this is a legitimate issue, and merge conflicts terrifiy me most of the time anyway)

I tend to make lots of mini deployments so taking the app down for 30-45 seconds multiple times a day feels really bad.

For those in similar shoes, what do you typically do?

https://redd.it/1qyq82y
@r_php
Remote Laravel dev from anywhere: Mac Studio + Tailscale + Herd + Zed (HTTPS .test + terminal)

I got tired of the “travel ritual” before fixing a tiny bug: dump DB, push half-finished branches, clone repos, re update .env, then spend an hour setting everything up.

So, if you keep a more powerful Mac at home (Studio or mini) and travel with a MacBook, this setup has been great for remote development without exposing anything to the public internet.



**Setup**

* **Tailscale** between Mac Studio (server) and MacBook Air (client)
* **Laravel Herd** serving my local `.test` sites
* **Zed** remote editing over SSH
* Full terminal access on the Mac Studio



**What works**

* Browse my projects via [`https://project.test`](https://project.test) remotely (not just SSH tunnels)
* SSH editing in Zed + terminal sessions
* No port forwarding, nothing exposed publicly



**Gotchas I hit**

* Tailscale Serve was silently taking over port 443, so Herd’s Nginx never saw HTTPS (It was OpenClaw 😅)
* Herd CA cert needed to be trusted on the client (System keychain) for clean HTTPS


I wrote up the full step-by-step (including the 443 debugging) here, this is my post:
[https://swapnil.dev/remote-laravel-development-with-tailscale-herd-and-mac-studio-the-complete-guide](https://swapnil.dev/remote-laravel-development-with-tailscale-herd-and-mac-studio-the-complete-guide)


**Question:** For folks doing remote Herd or Valet setups, any cleaner approach for cert trust across multiple Macs?

https://redd.it/1qz1hv1
@r_php
TadreebLMS - Looking for Contributors

🚀 TadreebLMS v1.0.1 is Live!

We’re excited to announce the release of TadreebLMS v1.0.1, an open-source Learning Management System built with enterprise, compliance, and on-premise deployments in mind.

This release focuses on:

🔧 Stability improvements & bug fixes
⚙️ Better developer experience
🧩 Foundation for upcoming enterprise-grade features

💡 We’re actively inviting contributors—backend, frontend, DevOps, QA, and documentation—to help shape the future of TadreebLMS.

If you’re interested in:

Open-source LMS development
PHP-based systems
Enterprise & compliance-driven platforms

👉 Check out open issues and contribute here:
🔗 https://github.com/Tadreeb-LMS/tadreeblms/issues

Let’s build a powerful, community-driven LMS together 🚀

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