PHP Reddit
31 subscribers
305 photos
40 videos
25.3K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Would you be interested in a Laracon Canada?

I’m exploring the idea of a possible Laracon Canada and put together a short interest form to gauge whether there’s enough support to make it happen.

If you’d be interested in participating as an attendee, speaker, sponsor, or organizer, I’d love your input:

**https://laracon.ca**

The form asks about:

where you’re based in Canada
which city you’d be most likely to attend in
what time of year works best
how you’d want to be involved

This isn’t an official announcement, just an attempt to measure real interest and see what a Canadian Laracon could look like.

If this sounds like something you’d want to see, please fill it out and share it around.

https://redd.it/1stm2n7
@r_php
Open source AST-based code transformation tool for PHP and MCP/automation workflows

I've been working on an open-source tool called **Morfx** and just shipped the first public release.

GitHub:
[https://github.com/oxhq/morfx](https://github.com/oxhq/morfx)

Release:
[https://github.com/oxhq/morfx/releases/tag/v0.1.0](https://github.com/oxhq/morfx/releases/tag/v0.1.0)

The idea is to make automated code edits safer and more targeted.

A lot of AI/code automation workflows still rely on string replacement or full-file rewrites. Morfx is meant to work at the AST level instead, so you can target a specific function, method, class, or file pattern more deterministically.

For PHP specifically, that means things like:

* targeting a single controller method
* replacing or appending code in a scoped way
* querying syntax nodes instead of grepping text
* keeping risky changes stageable/reviewable before applying them

The project exposes the engine through:

* an MCP server
* standalone JSON tools

I think PHP is an especially good fit for this kind of tool because a lot of real-world codebases are large, long-lived, and sensitive to broad automated rewrites.

I'd be interested in feedback on:

* whether this solves a real PHP/Laravel pain point
* what PHP refactor/use cases would matter most
* whether the MCP angle is compelling or if the standalone tools are more useful

Happy to answer technical questions or hear where this falls short.

https://redd.it/1stu8f5
@r_php
In a Symfony + API Platform project with hexagonal architecture, where do you put validation and how do you handle the DTO vs Command boundary?

I'm trying to figure out the right trade-off between three approaches for write operations. My setup: single-channel HTTP only, synchronous Symfony Messenger bus, no async, no multiple delivery channels.



Approach 1: Separate Input DTO + Command

DTO in Infrastructure with Symfony validator constraints, Processor translates to Command, Command is a pure POPO with no framework dependencies.



Approach 2: Command as API Platform input directly

No separate DTO, validation constraints live on the API resource class, Command stays a pure POPO with zero Symfony/API Platform annotations, Processor enriches with HTTP context

(authenticated user, etc.) before dispatching.



Approach 3: Handler directly as Processor

No Command at all, Handler implements ProcessorInterface, shortest path but Application layer explicitly depends on Infrastructure.

So what approach you recommand please :)





https://redd.it/1stxn44
@r_php
TreeTrek: PHP web app for browsing raw Git repos
https://repo.autonoma.ca/treetrek

https://redd.it/1stw12y
@r_php
Have google search results gone to shit with the advent of AI or am I losing my mind?

This is indirectly related to PHP, evidentely. But the vaat majority of my searches are PHP related.

Just want to make sure it's not only me.

https://redd.it/1su9r5e
@r_php
Another PHP deploy app for your VPS

I’d like to show you my new deploy app: deployphp.com. You’re probably thinking, “another deploy app.” Still, I couldn’t resist testing my idea and asking for your feedback. It’s an alternative to Laravel Forge and Ploi, but based on containers. Building and deploying the app all happens on your own server. It’s mainly aimed at PHP applications, but I’ve also added the feature to deploy a Dockerfile (including pulling custom GitHub code). This means you can actually deploy any kind of app.

There is support for migrations, cron jobs, workers, and persistent folders. At the moment, it’s still very experimental, and I’m looking for feedback and testers. Questions about how everything works technically, or suggestions for improvements, are very welcome. I’ve set a limit of 20 users. Preferably keep it constructive 🙂

https://redd.it/1sufy9a
@r_php
Experience on LunarPHP?

I'm looking into headless ecommerce solutions to build a new shopping site, and found lunarPHP interesting. I searched online to find more information about it like real life projects or sites using it, but can't find much details.

Does anyone have experience using it?

Thanks in advance

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