PHP Reddit
32 subscribers
353 photos
47 videos
26.1K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Has anyone switched to a multi carrier shipping platform?

I've been looking into different shipping software to simplify the shipping process, especially when comparing carrier rates and managing multiple shipments.

One platform I recently came across was Rollo Ship, but I'm still exploring other multi carrier shipping platforms before deciding which one makes the most sense.

For those who ship regularly, has using a shipping platform made a noticeable difference? Which features have been the most useful, whether it's shipping automation, label generation, lower shipping rates, or having everything managed through one dashboard?

I'd be interested to hear what has worked well for others and whether switching from a single carrier was worth it.

https://redd.it/1uxtgjq
@r_php
Anyone else finding Nested Widgets much easier for complex Elementor layouts?
/r/WordPressThemes/comments/1uxzwwd/anyone_else_finding_nested_widgets_much_easier/

https://redd.it/1uxzxhp
@r_php
Open source projet i've made with Fable5

Built a PHP profiler to test Fable 5… and I'm honestly impressed

I started this project mostly as an excuse to try Fable 5 in a real-world codebase.

The result is PHP Pulse: an open-source profiling tool for PHP applications that helps identify slow requests, database bottlenecks, memory usage and execution traces.

GitHub: https://github.com/quentinRogeret34/php-pulse

I expected Fable 5 to speed up development a bit, but I was genuinely surprised by how productive it made the whole process. It handled a lot of the repetitive implementation work while still letting me stay in control of the architecture and technical decisions.

The project is still evolving, but it's already usable and I'd love to get feedback from other PHP developers.

https://redd.it/1uy4m5f
@r_php
Existing Laravel Project and AI

I have an existing Laravel project and want to explore adding new features to it using AI. I have been using AI until now, where I would copy files of my code into the chat, e.g. Claude, and ask it to create/add features, but it's time consuming and I feel like there's much better/faster ways of doing it today.

What are the best ways currently of doing this, without it messing up my existing work?

https://redd.it/1uyanok
@r_php
Call for papers for PHPverse 2027

It's been a month since PHPverse 2026, which was a huge success. You can watch this year's talks here: https://www.youtube.com/playlist?list=PL0bgkxUS9EaK45-0M742u1WfK2G7FKXZQ

So we're already planning the next edition in 2027, and this time we're opening a public call for papers, everyone can submit: https://docs.google.com/forms/d/e/1FAIpQLSfp-_MYwaeVcDYZuPcL-YHHHikuoyB9hM7FUkpP2nUggba8hQ/viewform

https://redd.it/1uyuzst
@r_php
Un profiler comme PHP-SPX

Bonjour à tous 👋

J'ai récemment voulu essayer le développement d'un projet complet / complexe avec Claude Code et Fable 5. Pour répondre a mes problématiques sur des projets legacy j'ai donc développé https://github.com/quentinRogeret34/php-pulse un profiler comme celui intégré dans Symfony ou comme PHP-SPX

Je vous le partage si ça peut également vous aider dans certains de vos projet legacy

https://redd.it/1uyy94u
@r_php
Built a native Mac database GUI with Valet auto-detection — free beta

Been building Laravel apps for years and got tired of having to configure

database connections manually for local Valet projects.



Built Stratum — a native macOS database GUI that auto-detects your Valet

MySQL socket. Just open it and your local databases are there, no setup needed.



Also does PostgreSQL and SQLite with no extra config. Visual table browser,

schema designer, query editor with autocomplete, iCloud sync.



Free during beta: https://stratum.mwn-digital.uk



Curious if anyone else has been annoyed by the same thing with their local

dev setup.

https://redd.it/1uybfeg
@r_php
Worked on a settings & feature flags package package

Thought I'd post about it here. I've made and published a settings & feature fags package.

Yes I know Laravel has Pennant and Spatie has Laravel Settings. However, for what I wanted and needed in a couple of projects neither really fit what I was looking for.

I looked at other SaaS solutions like LaunchDarkly and ConfigCat and thought "I can replicate that with an OSS package." So that's what I set out to do. The initial implementation had a smaller scope was and done by hand, and then after that I brought in Claude to build out other features and refine what I had done.

Some things it comes with:

* Rule-based targeting to target users by attributes, segments, geography, device, or time (things like geolocation require external services).
* Percentage rollouts for gradual releases with consistent user bucketing
* Integration Laravel Pennant so if you're using Pennant and want to integrate this, you can have Pennant resolve to the DB
* Integrations with Laravel Telescope
* Integration with Spatie Permissions
* Highly extensible, create your own value types and drivers to add support for more things or other packages
* A lot more, but it's all covered in the docs

Since every project has its own needs, configuration and extensibility was an upfront must-have. I tried to have a sensible out of the box setup, but if something doesn't work for you, you can swap it out.


It doesn't currently ship with any interfaces or endpoints. I plan to add endpoints and Blade, Vue, React, Svelte support in the future, but I thought I'd get it out there for people to look at and provide feedback.

I've looked through the docs, making sure the steps were accurate, but if there's any gaps or something is wrong, let me know :)

I hope some of you will find it useful, I've been using it in a couple of projects 😄

GitHub: [https://github.com/GaiaTools/fulcrum-settings](https://github.com/GaiaTools/fulcrum-settings)

Docs: [https://gaiatools.com/docs/fulcrum-settings/v1](https://gaiatools.com/docs/fulcrum-settings/v1)

Packagist: [https://packagist.org/packages/gaiatools/fulcrum-settings](https://packagist.org/packages/gaiatools/fulcrum-settings)

https://redd.it/1uz4pib
@r_php
A subtle gotcha with hook/event systems: patching an object after creation doesn't retrigger the hook that ran on creation

This bit me recently and I think it's a common trap in any hook/event-driven system (WordPress actions, Laravel model events, custom pub-sub, whatever) — not just a one-off bug.


The setup: you create an object through one call, and a hook tied to that object's creation/save event runs some downstream logic (in my case, assigning an author based on a category — logic I only wanted to run once the object was fully set up). Then you attach more data to the same object through a second, narrower call — in my case, setting taxonomy terms after the post already existed.


The intuitive assumption is that the hook "sees" the object as it currently is. It doesn't. The hook only fires on the specific event it's bound to, and unless that second call also triggers that same event, the hook already ran and finished — with the object in its earlier, incomplete state. If the hook's logic checks a field that only gets set by the second call, it sees it empty every time, and the bug looks intermittent or random if the two calls sometimes land close together in your testing and sometimes don't.


The fix is boring once you see it: either combine the writes into one call before the event fires, or explicitly re-trigger the event after the follow-up call so the hook runs again with complete data. It took a while to get there though, because the actual symptom (a downstream field just not getting set some of the time) doesn't obviously point back to hook timing.


If you're chasing a "sometimes it works, sometimes it doesn't" bug involving anything that reacts to a create/save event, checking whether all the relevant data was actually present at the moment that event fired is worth doing before you start suspecting race conditions or caching.

https://redd.it/1uza4wk
@r_php
A native Mac app, with fully native UI, driven by PHP

I've applied what we've been doing on mobile to building a fully native Mac app, and... it works!

(Content warning: Heavy British sarcasm used throughout, but don't let that distract you from the reality of the discussion.)

> Prove it

I've posted a tweet about it for now with just a couple of screenshots. I'm not linking to it; you can easily find me on that hole of a website that just keeps sucking me in. In fact, I'm not going to link to anything as I'm sure I'll be accused of some kind of self-promotion.

More will come if folks are keen for this.

> Why u do dis?

Web views just aren't great ways to build great apps. They're convenient, but they're crap.

I mean, sorry all you Electron/Tauri/Capacitor folks, they're fine if you want a mediocre app or to spend months of your life debugging performance issues.

But if you want a real native app that feels really at-home on the user's device, then your best option is to build real native apps.

Sadly there aren't really any good cross-platform solutions for that problem (don't come at me with Qt's and GTK's, those aren't "good" by any stretch of the imagination).

And certainly none for the PHP gang.

Also, I wanted to nail a few things in one go for what we've been doing on Desktop up until now:

1. Get rid of Electron - it's just so heavy and comes with a bunch of gotchas. Plus having node and npm packages in the build process is continuing to scare me. aint nobody got time for that.
2. Don't replace it with Tauri - yes it's lighter, yes it's Rust so the purists can be happy. Sadly it's just swapping one mediocre solution for another.
3. Drop the PHP built-in server - yep that's what we currently use. Yes it's a crutch (that has worked pretty well!), but the time has come for better stability and better performance, and we have everything we need now to make it work without it.

This manages all of that and a little more to boot. This PoC app I've built is just 24MB. Granted it's a PoC, so it's likely to grow from there, but it's a far cry from the minimum 130MB+ just for Electron.

> So how does it work?

In case you haven't been following along what we've been doing on mobile - or perhaps you've been intentionally ignoring it because you have some bones to pick with either the name, the team, or the fact that it's using your favourite language in some profane way - we have cracked a very performant way to run PHP (>120fps ... like wayyyy greater than) and build reactive, native UIs without having it behave like a web server.

In fact, it behaves more like a game engine. It's very light on resource usage, has a ton of affordances already for native UI elements and allows you to write very idiomatic PHP code. All that without fundamentally changing PHP's core. Just adding our own extension.

We call it SuperNative. It kinda even looks a bit HTML-like, if you use Blade and squint hard enough. But deep down it's just PHP classes that compile to a custom binary format.

So there's no IPC, no HTTP calls, no multiple processes just to spin up an app. It's PHP compiled as an embed (exactly how we do it on mobile), embedded into the shell applications (in this case, a Swift macOS app), and called directly.

The application literally becomes a PHP interpreter. It boots PHP into an isolated thread that it keeps alive, feeding it messages and reading its output, all through shared memory.

Did I mention it's very fast? We're now measuring round-trips from button presses, through PHP and back out to the UI in microseconds (yup µs). And we can spin up multiple PHP threads as needed, in milliseconds (ms). And that's with a full Laravel application in there!

(Don't worry, it's still just PHP... if someone wants to help us make this not dependent on Laravel, or work with other frameworks, we'd be happy to have the support!)

All of this already works on mobile, and we're just starting to explore bringing it to the desktop.

> What's the catch?

Our focus is on mobile as way more people seem to want that. But
there are a few people still wanting advancement in the desktop space, so that's what we're trying to deliver.

This is only working on macOS for now, and it's just a proof of concept, but I'd love to tackle Mac, Windows and Linux all together.

To be able to do that, we gotta get some more sponsorship (you can sponsor nativephp on GitHub - you know how to use a browser and URLs, so I'll leave you to figure it out) and maybe then we can afford to take on yet another crazy huge project.

If this is at all interesting to you and you wanna help make it a reality, please reach out. I'm always open to chat irl and much prefer it to having anons sling zero-effect insults at me across Reddit.

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