r_php | Unsorted

Telegram-канал r_php - PHP Reddit

33

Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram

Subscribe to a channel

PHP Reddit

Lens for Laravel v2.0.0 is out: accessibility audits now map Axe-core issues to Blade, React, Vue, and Livewire

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

Читать полностью…

PHP Reddit

I spent over a month building a Laravel monorepo

Hi everyone,

My English is not good so I used AI to translate this, sorry about that :)



I have around 6 years of experience with Laravel & Symfony. For the past few years I've been using Botble CMS (you can Google it) to build projects for my customers because it comes with so many built-in features - ACL, form builder, table builder, etc. Building all that myself would probably take a whole year.



But lately I feel like Botble is getting outdated, and the license cost is getting too expensive. So, as the title says, I spent over a month building my own Laravel monorepo (with some help from Claude :D).



So far I have these packages: support, hook system (like WordPress), auth, ACL, settings, i18n, media, form builder, notifications, plugins, themes, self-updater, table builder, menu, and admin panel.



The architecture is modular, each module is a composer package. The packages are loosely coupled, meaning I can use form builder without pulling in table builder, themes, menu, plugins, etc. But form builder does require hook system and support.



I have a couple of questions:

\- Would you actually use something like this? (I want to open source it but I'm a bit nervous, so I figured I'd ask first :D)

\- Is there any feature you think I'm missing or would want me to build? (If I open source this, I'll definitely work on it)



Thanks for reading!

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

Читать полностью…

PHP Reddit

PHP-Styler: A Back-To-Formula Rewrite
https://pmjones.io/post/2026/04/24/php-styler-a-back-to-formula-rewrite/

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

New SymfonyCasts Course: Doctrine Inheritance - Class Hierarchy in the Database
https://symfony.com/blog/new-symfonycasts-course-doctrine-inheritance-class-hierarchy-in-the-database?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

php-deploykit - bash based PHP deploy tool for Laravel
https://deploykit.nattho.com/

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

Читать полностью…

PHP Reddit

TreeTrek: PHP web app for browsing raw Git repos
https://repo.autonoma.ca/treetrek

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

Читать полностью…

PHP Reddit

Pratically every Packagist.org project archived + buried at a pyramid in Egypt: Bettergist 2026.Q1, this time with video proof
https://github.com/bettergistco/PackagistArchive/blob/trunk/press-release.md

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

Generate Apple and Google Wallet passes from Laravel
https://freek.dev/3108-generate-apple-wallet-and-google-wallet-passes-from-laravel

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

Читать полностью…

PHP Reddit

PHPverse is back: the free online conference for the whole PHP community on June 9th!
https://jb.gg/w3z4ck

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

Читать полностью…

PHP Reddit

PHPverse is back: the free online conference for the whole PHP community on June 9th!
https://jb.gg/w3z4ck

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

Читать полностью…

PHP Reddit

PHP will get an AOT compiler from the Swoole team in 2027

>Swoole Compiler v4 introduces a native AOT (Ahead-of-Time) compiler that radically changes the landscape. The AOT compiler abandons traditional PHP interpretation and allows code to be compiled directly into native binary executables. Performance can increase by orders of magnitude compared to the classic interpreter, reaching levels comparable to Rust and Go.

News has appeared in the Chinese segment that Swoole Compiler 4 plans to release a real PHP AOT compiler, roughly 95% compatible with PHP. Some natural limitations like $$, eval, and extract are understandable.

We have effectively already entered the era of AOT compilation for scripting languages. Similar efforts are emerging for Python and Ruby, and TypeScript already has an AOT compiler.

What does this mean?

It means it will be possible to get rid of the PHP VM and JIT in favor of native code packages that can reach maximum performance. It also means that, in the future, PHP may have multiple runtime environments. And it means that if moving to a compiled language is not part of your plans, you risk being left behind.

I urge the entire professional community to take this trend seriously.

https://mp.weixin.qq.com/s/05I3xe4pgRJufSBG-8Gz6w

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

Читать полностью…

PHP Reddit

Laravel Reverb + Nuxt 3: Real-Time Messaging, Full Chat App Tutorial
https://youtu.be/bjcM8E5s8p0

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

Читать полностью…

PHP Reddit

Wonderful world of worktrees (and Laravel)
https://joeymckenzie.tech/blog/wonderful-world-of-worktrees-and-laravel

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

Читать полностью…

PHP Reddit

PHP 8.5 10 million requests per day with 10 PHP workers on $50 VPS

Drupal 11 website with around 100k requests per day and we previously struggled with consistent performance on 16core 128GB server. New $50 stack is tuned for 100 million requests per day with relying only on PHP 8.5.

Before this stack, we put many layers in front of PHP … Nginx fast-cgi cache, Varnish, Cloudflare HTML caching and tried blocking bots to stop surges but nothing helped.

Irony was server was always on very little CPU usage.

Turns out we were NOT planning our stack for 99% of our traffic - we were planning it for a few surges throughout the day.


New Stack

\- Got rid of Cloudflare, Nginx, Varnish - no external cache in front of PHP

\- Reduced Max PHP workers to just 10 behind Default Apache settings

\- Even turned off Drupal Internal Page Cache and just used Dynamic cache with Memcache support

\- Offloaded all static files via static domain to Cloudfront with a CNAME set up. Default settings - no complexity.

To our surprise, this new set up is blazingly fast, extremely performant and able to scale up to more than 100 requests per second and up to 100 million requests per day.

All 10 php-fpm workers are always warm and even if we get a scraper sending 1000 request in one hit, our set up can absorb it and get back to normal within 10-15 seconds.


And we still have 90% headroom on CPU .. all thanks to latest improvements in PHP performance.

What we have learned!

\- Trust PHP to handle almost everything

\- Plan for 99% of your traffic, not for surge traffic else you will make it worse for 99% of your traffic

\- You don’t need cache layers in front of PHP 8x .. a lot of misconceptions come from PHP 5x era when PHP was slow and CPUs were expensive .. Cache Layers are extra hops and connections and contexts are expensive .. Nginx and Varnish are totally redundant and so are CDNs unless you have lot of global traffic but you will be degrading your local users to some extent.


Don‘t throw extra memory, CPUs, extra workers, external caching in front of PHP unless you have Reddit scale traffic .. make sure your PHP app is properly written (profile custom modules) and trust extremely fast PHP 8x to do the magic!





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

Читать полностью…

PHP Reddit

Introducing Marko: The Truly Modular PHP Framework
https://youtu.be/P_1TtSBQ2vo

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

A local email inbox for Laravel (no Mailtrap/Mailhog needed)
https://redberry.international/mailbox-for-laravel-email-testing/

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

php-deploykit - bash based PHP Deploy tool for Laravel
https://deploykit.nattho.com/

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

What's New in Laravel 13.6: Debounceable Jobs, JSON Health Checks & Cloudflare Email
https://youtu.be/G7W0ynvR2hc

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

Читать полностью…

PHP Reddit

Ember: Real-time dashboard for FrankenPHP
https://github.com/alexandre-daubois/ember

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

Читать полностью…

PHP Reddit

PHPverse is back: the free online conference for the whole PHP community on June 9th!
https://jb.gg/w3z4ck

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

Читать полностью…

PHP Reddit

Your SQLite database is silently getting wiped on every Forge deploy
https://laracraft.tech/en/blog/sqlite-on-laravel-forge-with-zero-downtime-deployments

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

Читать полностью…

PHP Reddit

BETA laravel-permissions-redis v4.0.0-beta.1 — Redis-backed permissions, looking for feedback

Hi ,

Maintainer of [laravel-permissions-redis\](https://github.com/scabarcas17/laravel-permissions-redis) here. Just cut v4.0.0-beta.1 and I'm looking for people to test before I cut stable.

Quick context on what it is

Spatie's laravel-permission is great and it's what most people should use. This package is for a specific case: when you're doing so many permission checks per request (think: a complex admin panel rendering 200+ ACL-gated widgets, or API gateways authorizing fan-out calls) that the DB roundtrips from Spatie become measurable latency.

All reads go to Redis. The DB is only touched on cache miss (warm) or on write (assign/revoke). Writes invalidate and re-warm via events.

What's new in v4.0*

\- Permission `group` metadata preserved in Redis — previously `PermissionDTO::group` was always null, now it's backed by a Redis hash
\- `Role::hasPermission()` — direct role-level check via SISMEMBER
\- Blade directives accept guard override: `@role('admin', 'api')`
\- Queue-backed warming (`--queue` flag on the warm commands)
\- Multi-user-models — `user_model` config accepts an array (useful for User + Admin separation)
\- UUID/ULID role IDs
\- LRU eviction in the in-memory resolver cache + warm cooldown (protects long-running workers and DB storms)
\- `TransactionFailedException` — Redis EXEC failures are observable instead of silently dropped

Breaking

`PermissionRepositoryInterface` gained 3 methods for permission group metadata. If you only use the package as a consumer (not implementing the interface yourself), no code changes required — just run `php artisan permissions-redis:warm --fresh` after upgrade.

Install the beta

composer require scabarcas/laravel-permissions-redis:\^4.0@beta

Release notes: https://github.com/scabarcas17/laravel-permissions-redis/releases/tag/v4.0.0-beta.1

Honest disclaimers

\- This is beta. Don't deploy to prod yet.
\- If your app does <50 permission checks per request, Spatie is probably simpler and fine.
\- Needs Redis. If you can't run Redis, this is not for you.

Open to feedback on: API ergonomics, the upgrade path, whether the new interface methods feel natural, anything else. Will roll feedback into beta.2 or rc.1.

Thanks!

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

Читать полностью…

PHP Reddit

Announcing Plans for a PHP Ecosystem Survey and Report
https://thephp.foundation/blog/2026/04/22/announcing-plans-for-a-php-ecosystem-survey/

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

Читать полностью…

PHP Reddit

Your Projections Will Fail — Make Them Resilient
dariuszgafka/your-projections-will-fail-make-them-resilient-e996650f56cf" rel="nofollow">https://medium.com/@dariuszgafka/your-projections-will-fail-make-them-resilient-e996650f56cf

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

Читать полностью…
Subscribe to a channel