r/laravel • u/aarondf • 1h ago
Laravel going live in one hour on YouTube and X
We're going live in one hour! Head to https://laravel.com/presents to watch!
r/laravel • u/AutoModerator • 2d ago
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
Did you provide a code example?
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
r/laravel • u/aarondf • 1h ago
We're going live in one hour! Head to https://laravel.com/presents to watch!
r/laravel • u/simplism4 • 1d ago
Includes a README: https://crates.io/crates/laravel-rust
r/laravel • u/nunomaduro • 1m ago
Introducing: Laravel Agent Kit and Laravel Converse
A starter kit for AI agents, and a package that puts those agents in Slack, Telegram, GitHub and your own web pages
Want to see it running? Try Later, a demo to-do assistant built with the Agent Kit & Converse. It's an interactive demo, so you see the code behind each part as you use it: https://later.laravel.cloud
We can't wait to hear your feedback. Start here: https://laravel.com/php/docs/ai-getting-started
r/laravel • u/SilverPutter • 22h ago
I was happy with Herd, but when I upgraded to Herd 2.0, it just kinda rubbed me the wrong way. Hunting and pecking with the AI stuff getting in the way, and I don't want AI here!
Anyhow, I saw some posts on X about Yerd and Lerd, came here looking, and now I just installed Yerd. So far, so good. Nice work.
My Herd Pro renewal is coming up, so I just canceled it.
So, whoever created Yerd, thank you.
r/laravel • u/ifezueyoung • 17h ago
So the Laravel team is announcing Laravel Rust tomorrow.
Which means it needed a UI library yesterday. Best I could do was today.
April UI Rust is out: 109 component templates, Alpine interactions, and live docs.
Very much a POC. No Livewire yet. The framework hasn’t officially dropped yet.
https://crates.io/crates/april-ui-rust
Drop a star: https://github.com/yungifez/april-ui-rust
Follow along: https://x.com/yungifez
Just a note, most of this was boring agent work, not just vibe coded slop
April UI is mostly in the JS
r/laravel • u/mccreaja • 1d ago
This year, I've been helping Eric optimize Laravel News. We recently took a closer look at Laravel News' Laravel Cloud bill. Between right-sizing infrastructure and a few targeted application optimizations, we found some pretty nice savings.
Here's what we changed:
We lowered the bill from $129/month to $72/month, saving $57/month or $684/year. And there's still more we can do...
Full article on Laravel News. Audit your Laravel Cloud bill with Thrift.
r/laravel • u/petecoopNR • 23h ago
I've been using prettier plugins to format my blade files for a few years now, I've recently started using Mago for formatting PHP.
Since the release of oxfmt I'd been looking for a way to remove prettier and going to an entirely Rust based toolchain, and something that was more consistent alongside those tools.
So I (& claude ofc) built bladefmt, it's a blade formatter that uses Mago & Oxc under the hood to handle those parts so that it stays consistent with the surrounding code.
Features:
x-data is formatted as js by OxfmtAt the moment this can be installed as a standalone binary, instructions on the repo.
r/laravel
•
u/ahmadalmayahi
•
2d ago
I just pushed v4 of my free, open-source book Clean Code in Laravel. The main changes:
AI rules and a Claude Code plugin
Every convention in the book is now also written as instructions for AI coding agents. One command installs them into any Laravel project, in the right format for Claude Code, Cursor, Copilot, Windsurf/Devin, Junie, Codex (AGENTS.md), Gemini and Laravel Boost:
curl -fsSL https://mayahi.net/laravel/ai-rules.sh | bashThere’s also a Claude Code plugin that builds features, refactors, and reviews code against the book:
/plugin install clean-code-in-laravel --marketplace ahmadmayahi/clean-code-in-laravelHi folks,
another update on SimpleStats, the server-side analytics tool for Laravel: projects can now connect Google Search Console.
Google hides the search term of every visitor, so "google.com" in your referrers never tells you what people looked for. Search Console has that data, so SimpleStats imports it and shows a Keywords tab next to Referrer, Source and Campaign: clicks, impressions, CTR and average position per keyword.
The part I find most useful: an estimated revenue per keyword.

Search Console knows the keywords per landing page, SimpleStats knows what the people who entered on that page paid. Each keyword gets its share of the page's traffic times the page's revenue. It is clearly an estimate (Google never tells which visitor searched what), but good enough to see which keywords are worth more content and which are vanity traffic.
A few details:

The app is open source (AGPL-3.0) and can be self-hosted. There you plug in your own Google OAuth client, the docs walk you through it.
Blog post: https://simplestats.io/blog/google-search-keywords-laravel-analytics
Docs: https://simplestats.io/docs/google-search-console.html
Repo: https://github.com/simplestats-io/app
Happy to answer questions, and curious how you track your SEO today!
r/laravel • u/Powerful_Sea8532 • 2d ago
FLEX Media Studio is now available for Laravel and Filament 5. It gives teams a shared place to collect, organize, edit, and share media inside their own Laravel app.
Upload a product image once. Use it in a Filament form, insert it into RichEditor, and display it in a table. Each record can reference the same asset, so one file can serve multiple parts of the app.
r/laravel • u/troypavlek • 4d ago
I've been a Herd Pro subscriber for years and this morning I'm uninstalling it and getting an alternative.
The point of Herd was to make my life easier and get out of the way. I set it up once, and all the projects in my directory were automatically set up. If I needed one time expose sharing, it was there. I could update and maintain PHP versions. It always worked, reliably.
Now, Herd is, frankly, more annoying than it's worth. I wouldn't keep it if it was free. It injects annoying banners onto every local development site, insists on starting and restarting services that impact my development flow, and constantly wants me to edit in "Herd studio".
I already have a development environment. That's not why I bought this product.
There's no way to give feedback in the application, and I assume the developers aren't particularly interested in feedback, but I just wanted to put this out there. So many tech businesses these days are assuming their cancellations are due to their customers moving to AI toolchains.
I didn't cancel because of AI, or changing markets. I cancelled because the development team has consistently and repeatedly made decisions to make their product worse and annoying. Not a fan.
r/laravel • u/ProjektGopher • 4d ago
While the Internals list is not technically directly Laravel related, it does affect every single one of us.
Preface: what follows is the word-for-word transcript of the spoken dialogue in the video, chapter by chapter with timestamps, for anyone who'd rather read than click through. If this digest is still too long for you, we recommend copying it into your LLM of choice and asking for a summary of our summary.
Thirteen years ago this week, php.net launched the design you still see today, with a commit message that read "GO LIVE WITH NEW DESIGN. GO GO GO GO!" Every attempt to replace it since has stalled. Until, maybe, now.
Hello world, it's Thursday, November 26, 2026, and here's what happened This Week in PHP Internals. 19 stories this week, so let's get into it. But first,
This week's episode is sponsored by Artisan Build, which is us. If you've got a PHP project that needs senior developers, book a call at artisan.build/start, or send us a DM on any platform.
This week's top story: php.net may get its first homepage redesign in 13 years. Matt Stauffer posted one from the PHP Ambassadors marketing group, as a pull request with a live preview. The goal is a homepage that's more welcoming to newcomers and shows what modern PHP offers. He opened it on November 20th, 13 years to the day after php.net announced its current design. That design spent about three years as an opt-in beta, and went live with a commit that read, "GO LIVE WITH NEW DESIGN. GO GO GO GO!"
There was no RFC. Matt says it came mainly out of discussions on the webmaster mailing list. Since then, proposals to rewrite or replace it in 2014 and 2019 went nowhere, and a 2020 pull request was closed as outdated. The homepage got a new hero section in 2022, but it's still mostly a news feed, and it still has no dark mode.
Back in 2019, Levi Morrison, who says he did the 2013 redesign, wrote: "If you think the current PHP website is old, out-dated, and bland, you must have not experienced the previous one." The release pages are where the design moved, with 8.5's coming out of a design contest last year. Matt's redesign builds on that page.
Links: The pull request (no merge before December 4) · Live preview
Most of the first replies were warm. Larry Garfield called it "orders of magnitude better than the current front page", though he wants more purple. Juliette Reinders Folmer misses the elePHPants and finds the look corporate, which Matt says is deliberate, to make PHP's case in boardrooms. She also wants the footer's Donate button renamed, because, she wrote, "This is not charity. This is funding for business critical software." Kalle Sommer Nielsen wants the Twitter link back and an RFC, given the scale of the change. Matt pointed out that the 2013 redesign and the 8.5 release page both shipped without one, but if an RFC is the only way forward, that's what they'll do. Either way, there's no merge before December 4th.
I'd love it if you'd tell us in the comments what you do and don't like about this new proposed design, and what you may or may not miss from the current one. To weigh in where Matt is collecting feedback, the pull request and the list thread are linked below, with instructions to join the internals list, the RFC process and the PHP Community Discord.
Links: The pull request (no merge before December 4) · Matt Stauffer, "PHP.net homepage redesign — feedback requested" · Subscribe to the internals mailing list · How the RFC process works · The PHP Community Discord (a community server, not an official PHP one)
Docker's official PHP 8.6 images shipped as thread-safe builds only, and the list wanted to know who asked for that. PHP comes in two builds. NTS, the non-thread-safe one, is PHP's default, and ZTS is the thread-safe one that FrankenPHP and the parallel extension need.
On Friday, Matteo Beccati, one of the 8.6 release managers, asked whether that had been an official request from the project. He wrote: "If not, I'm not sure it was appropriate to experiment like this on such a large user base, before publishing an RFC, discussing it and voting." Gina P. Banyard and Benjamin Außenhofer answered that these are Docker's official images, not the PHP project's, so no RFC applies. Marc Henderkes, who suggested the switch and wrote the change, said his question was never taken as official by Docker's maintainers. Matthew Sewell's reply was that Docker's maintainers made the change because they thought the PHP project had asked. He wrote: "I think this is a process question rather than a technical one."
On GitHub, Docker maintainer tianon said flipping the default back would be a breaking change, days after release. So on Wednesday he merged an nts variant instead, for 8.6 only. ZTS stays the default. Benjamin named the one change regular users may notice: on ZTS, max_execution_time counts wall-clock time instead of CPU time. That's an open issue on php-src.
Links: Matteo Beccati, "Docker images for 8.6 now default to ZTS" · docker-library/php: an 8.6 nts variant and zts aliases (merged Nov 25)
Your JSON config files may soon be allowed comments. Otar Chekurishvili's RFC adds two opt-in flags to json_decode and json_validate, one for comments and one for trailing commas. Without the flags, strict JSON stays the default. Voting opened on Wednesday, with a separate vote for each flag. The comments flag is at 11 to 0 so far. The trailing-commas flag is also at 11 to 0. Both votes close December 9th.
And personally? I love this proposal, and I think it's way overdue. I love how it's structured, and I'm very excited for it. Trailing commas in arrays and function signatures are literally my favorite PHP feature, so this is a step in the right direction.
Links: Opt-in JSON Comments and Trailing Commas RFC
The vote to shut down PECL didn't open on Wednesday after all. James Titcumb's RFC would shut it down at the end of 2027. Tim Düsterhus says that's too fast. PHP 8.6 still has the --with-pear build flag, and the earliest it can go is PHP 8.7, next November, just one month before the shutdown. So he'd extend it through 2028. James isn't convinced. He says it means an extra year of manually removing vulnerable packages, and he'd leave that call to Derick Rethans, whose job that mostly is. Derick replied: "I think the idea would be to stick this in a repo, so anybody could then make a PR to hide these things. Shouldn't have to be just me." The RFC still says the end of 2027.
Links: Sunset PECL RFC
Ben Ramsey's Working Groups RFC got stricter this week, and Tim Düsterhus thinks that made it worse. Larry Garfield's membership rules were merged in: a minimum number of members, and a process for removing them. Ben says the point of a working group is transparency, and that the final RFC from one is "primarily a formality". Then, this morning, Tim wrote: "Overall I feel that this update made the proposal even worse" His example is the infrastructure team, which he thinks is 2 people today. Under the new rules, a single resignation could dissolve it automatically, leaving no one authorized to maintain the servers, he says, or to hand them over. There's no vote yet.
Links: Working Groups RFC
A first-time poster wants PHP's iterators to get the array_* treatment. Paweł Wankiewicz proposes 11 iterator_* functions, like iterator_map, iterator_filter and iterator_reduce, that work through an iterator one item at a time, and fit straight into a pipe. Today, you'd call iterator_to_array first, which loads everything into memory. On 5 million lines of JSON, he measured 3.1 gigabytes that way, against 11 kilobytes for iterator_reduce. He also disclosed that he wrote the implementation with Claude, and that the design decisions are his.
Ilija Tovilo replied: "Small heads-up that this has been on my TODO list for the longest time. I was planning on collaborating with Tim Düsterhus on a similar proposal." The hard part, Ilija says, is speed compared to a plain loop. Paweł's own numbers have a filter, map and reduce chain 2.2 times slower than foreach with the JIT. He offered to collaborate, and Ilija granted him RFC karma either way.
I really like this one. It starts from a problem you can actually measure. Paweł volunteered how he used AI without anyone asking. Ilija pointed out it's been sort of planned for a while, and left the door open to working on it together. To me, this feels like the perfect example of how the list is meant to work. I'm super interested to see how this one progresses.
Links: Paweł Wankiewicz, "[Pre-RFC] Lazy iterator_* functions"
PHP's Deprecated attribute can't go on an interface today. Daniel Scherzer's new RFC allows it there, so implementing or extending one emits a deprecation. Larry Garfield called it "an obvious addition". At Tim Düsterhus's suggestion, instanceof checks and type declarations won't warn. The open question is a hierarchy. If a library deprecates its own interface because the parent it extends is deprecated, Tim would hide the parent's warning. Daniel thinks that might be a footgun, and has asked for other opinions.
Links: Deprecated interfaces RFC
Two RFCs that announced votes this week are now waiting. Pratik Bhujel planned to open voting on Io\Terminal on Tuesday, then held off after one more review from Tim Düsterhus. Version 0.7 came the same day, spelling out $columns instead of $cols, and adding an EofException, so callers can handle the end of input separately.
And Ayoub Ezzini withdrew his array_partition vote for tomorrow. Tim pointed out that his last change needs a two-week cooldown, which would push the vote into the holidays, so it now opens after them.
Links: Io\Terminal RFC · array_partition() RFC
Str\Matcher has a vote date, and a naming question. Artem Ukrainskiy's version 0.5 targets PHP 8.7, keeps its names, and goes to a vote on January 11th, after the holidays. The same evening, Tim Düsterhus objected to the new Str namespace. It would be the first namespace for one of the scalar types, and he says that needs "strong justification", and a plan for the whole hierarchy. He also finds the class names awfully generic, and suggested StrSet or StrSetMatcher in the global namespace instead. Artem hasn't replied yet.
Links: Prepared Literal String Matching and Replacement RFC · Tim Düsterhus on the Str\ namespace
Three engine proposals moved this week. The proposal to share identical opcode arrays between cached scripts got its first answer, from Arnaud Le Blanc. It doesn't need an RFC, he says, and can be discussed in a pull request. But it breaks the assumption that the same opcodes mean the same function, and by the proposal's own security review, one tenant can break into another.
Matthieu Napoli measured Levi Morrison's alternative to a single binary for CLI and FPM, a shared library. Lambda cold starts improve just the same, but on x86-64 it ran up to 7.7% slower, unless it's built with -Bsymbolic, which needs bigger changes for distributions. So Matthieu still prefers the single binary.
And Tim Düsterhus reviewed Kévin Dunglas's request lifecycle hooks for worker-mode servers, asking what happens to an open php://input stream between requests.
Links: Arnaud Le Blanc on OPcache dedup · Single binary for CLI and FPM RFC · Request lifecycle hooks RFC
Four new ideas arrived this week. This morning, Marc Henderkes proposed removing the mm session handler instead of making it thread-safe. None of the common distributions enable it, and he found no public mention of it since 2008. Hassan Ahmed wants PDO::FETCH_GROUP to let you choose the column it groups by, instead of always the first one.
Robert Chapin suggested a double question mark on parameter types, so a function could accept an unset variable without a warning. Tim Düsterhus says that's a linter's job. Larry Garfield replied: "We do not need language syntax to make bad code pretend to work."
And Gregory Magarshak proposed that PHP 9 only include .php and .phar files, and refuse to write them. Replies pointed out that template engines like Twig and Blade compile to PHP files, and Craig Francis pointed back to his is_literal RFC.
Links: Marc Henderkes on removing the mm session handler · Hassan Ahmed's PDO::FETCH_GROUP pull request · Robert Chapin, "Null Coalesce Handling Revised" · Gregory Magarshak, "Common-sense security hardening"
Quick hits. grapheme_str_pad is at 13 to 0, up from 6 last week, and its vote closes December 2nd.
Links: grapheme_str_pad() RFC
On PASSWORD_BCRYPT_WRAP, Jakub Zelenka wrote that PHP shouldn't create its own password hashing algorithm, and that, if anything, he'd support the simpler bcrypt-sha256.
Links: Jakub Zelenka on PASSWORD_BCRYPT_WRAP
Xavier Leune will switch his curl callback to a single URI, at Tim Düsterhus's suggestion, and Tim called gethostaddresses a good short-term fix.
Links: Vetting cURL connections RFC · Tim Düsterhus on gethostaddresses()
Máté Kocsis simplified query parameters, Larry Garfield ruled out NoDiscard for context managers, Juliette's b prefix deprecation found 2 uses in the top 10,000 packages, and Ignace Nyamagana Butera asked the CSV extension to throw on infinity and NaN.
Links: Query Parameter Manipulation Support RFC · Context Managers v2 RFC · PHP 8.7 deprecations: the b prefix · CSV extension RFC
So that's the week. php.net has its first homepage redesign in 13 years up for feedback, with no merge before December 4th. Docker's PHP 8.6 images stay thread-safe by default, with an nts variant if you need it. JSON comments are 11 to 0 in voting, and the PECL shutdown vote didn't open, with the timeline still in question. Links below.
The PHP Foundation funds more than half of ongoing php-src commits, so if you use the language, maybe consider donating at opencollective.com/phpfoundation, or try guilting your employer into it.
If you found this useful, a like or a comment helps more people find it. And if you missed last week's episode, where PHP 8.6 came out alongside 7 critical security fixes, that's a good one to watch next. And if you'd like to work with us, book a call at artisan.build/start. We're Artisan Build. See you next week.
r/laravel • u/software__writer • 7d ago
Taylor has been hinting at some huge Laravel update next week. Today's Mostly Technical episode also had some hints about the big launch next week (see: Biggest Week in Laravel History).
I'm a Ruby on Rails developer and don't even use Laravel (but absolutely love the framework and community) and I'm very excited about whatever new thing Taylor is going to be revealing.
Any guesses what it's going to be? My guess is that they'll drop the 'Laravel / PHP' branding from Laravel Cloud and make it language / framework agnostic like Render / Heroku etc.
Looking forward to the next week.
r/laravel • u/packstub-dev • 7d ago
Hey r/laravel!
Last month I posted v1.0 of Session Replay for Laravel here. Thanks to everyone who commented and gave feedback on that thread, it helped a lot.
Since then I added a live view. When the person is still on the page, you can see their page as they use it, point at the button they can't find, take control if they allow it, and talk to them. The talking part is Holler, a new package for audio and video calls in a Laravel app, which you can also use on its own. The short video above shows both with two real browsers.
A few things I did not expect while working on it:
The recorder already produces rrweb events. The live view sends the same events over a WebRTC data channel, and the other side replays them about 300 ms behind. It is the same masked stream as the recording, so a masked input shows asterisks live too. A normal screen share is there as well, if the visitor allows it.
OpenReplay has a self-hosted live co-browsing feature called Assist, and it was the model for this one.
Two browsers exchange only a few messages to find each other, so short HTTP polling is enough and you don't need to run a websocket server. That fast polling runs only while a visitor is waiting for an agent or a call is open. After the browsers connect, audio, video and the page mirror go peer to peer.
One catch: Chrome slows the timers of a hidden tab, and then the server would think the visitor left. A timer in a Web Worker is not slowed down like that, so the poll runs there.
The agent can ask to control the page, and the visitor has to allow it first. After that, the agent's clicks, scrolls and typing are sent to the visitor's page as synthetic events. The browser refuses whatever needs a real user gesture (a popup, a file picker, the clipboard), and I did not try to work around that. A password field is never filled, and the visitor can take control back with Escape.
Holler does calls between the users of a Laravel app: audio, video and screen share, one on one or in small groups. You put a widget in your layout and a call button next to a user, and one closure decides who may call whom.
Session Replay uses it for the support call. The visitor is asked for the microphone (or the camera and microphone) first, and no answer in 30 seconds counts as no.
In the v1.0 thread someone asked if a standalone Vue frontend can be recorded. Back then it couldn't, and now it can. The npm package @packstub/session-replay runs the same recorder there. It gets a signed token from your Laravel app, behind your own sign-in, and uploads the recording across origins. It is off by default, and you list the origins you allow.
This part is recording only. The live view works on pages that Laravel renders.
Everything is free and MIT-licensed, and there are Filament plugins for both packages.
I'd love to hear your thoughts, and I'm happy to answer questions!
r/laravel • u/Prestigious-Type-973 • 7d ago
r/laravel • u/rubencito21 • 7d ago
I didn't fully like how any LSP behaves on VSCode and Zed (Zed is the editor I've been trying for years and my preferred one for now). I tried a lot of them, from paid ones to freemium to open source.
So 8 months ago I started a project I'd been thinking about making for years, in a language I'm still learning today (Go), with AI tools like Claude Code (which made this possible).
The goal is to make my own agency's daily work easier: mostly Laravel and Symfony work, plus the odd edit on WordPress websites. I'm way more experienced in Laravel, but I've done some Symfony work, mostly in open source rather than on the framework itself. The idea is to simplify all the harder parts I found across different IDEs and LSPs in the massive PHP ecosystem we have today (and hopefully keep up with some of what I call "legacy" stuff like WordPress).
The Zed extension is still waiting for the Zed team to accept my PR to their extensions repo (it's been there for months...), but you can build it from the source repository (sorry). The VSCode one has been published since this LSP started.
Anyway, a brief look at priorities and features that are already implemented:
composer.json and is now the default when a project doesn't say. New functions and classes like clamp() complete and hover. The 8.6 deprecations show as warnings with the replacement PHP suggests.QoL (Quality of Life):
composer.json, etc.btw this post isn't AI generated. I just wanted to share it here to hear feedback from users, which to me is more valuable than adding features for the sake of it. Feedback, issues and PRs are all very welcome!
r/laravel • u/Far-Spare4238 • 7d ago
hey all
been working on this thing called pun. it's one binary that does format, lint, analyse and composer install for php projects, all from one pun.toml
quick rundown:
pun format - only touches layout, never what the code does
pun lint --fix - rewrites stuff to a better way, fixes are marked safe/unsafe
pun analyse - finds bugs, never edits anything
pun install - fills vendor/ from your composer.lock
pun migrate - turns your pint.json / rector.php / phpstan.neon into one pun.toml
the code is 100% AI generated but tested over months. not gonna pretend otherwise.
it's a beta so there will be bugs. if you try it on a real project and something breaks or feels off, tell me, that's the whole point.
if you don't wanna try it, all good too.
repo: https://github.com/shipfastlabs/pun
docs: https://punphp.com
Check pun in action by u/enunomaduro https://www.youtube.com/watch?v=lyMk4gY5p4c
r/laravel • u/AutoModerator • 9d ago
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
Did you provide a code example?
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
r/laravel • u/arthurmonney • 10d ago
I maintain Shopper, an MIT e-commerce engine for Laravel. Version 3.0 is in release candidate and I'd like feedback before the stable release.
What 3.0 brings:
- A Store API and a typed TypeScript SDK. The same back office serves a Livewire storefront, a Next.js site or a mobile app.
- An upgrade from 2.x in one command: `php artisan shopper:upgrade` runs the migrations, renames the classes with Rector and converts the permissions.
- An admin panel on Filament 5 and Livewire 4, with passkeys, CSV product import and themes.
- A payment layer with signed webhooks, pending payments and idempotent refunds.
- Add-ons: price lists and customer groups (MIT), media hotspots (paid).
9 RCs have shipped since September. RC.9 came out this week and closes two security reports: paid files of virtual products are now delivered through temporary signed links, and two concurrent checkouts can no longer both reserve the last unit of a product on MySQL.
Laravel 12 and 13, PHP 8.3+.
composer require shopper/framework:^3.0.0-rc
Two things I'd like to hear:
- If you run Shopper 2 in production, run the upgrade on a copy of your store and tell me what breaks.
- If you looked at Shopper before and picked something else, what was missing?
GitHub: https://github.com/shopperlabs/shopper
RC.9 release notes: https://github.com/shopperlabs/shopper/releases/tag/v3.0.0-rc.9
r/laravel • u/freekmurze • 11d ago
We've released a new package: spatie/laravel-suspicious-login 👀
It records login attempts and checks successful logins for things like a new device, a new country, or travel between locations that would be impossible in the time between logins.
You configure the checks in a preset, which is a PHP class that defines how many points each check adds and what happens at each risk level. You can notify the user, block the login, or run your own actions.
In true Spatie style, you can customize all behaviour.
✍️ Blogpost: https://freek.dev/3230-detecting-suspicious-logins-in-your-laravel-app
📚 Docs: https://spatie.be/docs/laravel-suspicious-login
⚙️ Source: https://github.com/spatie/laravel-suspicious-login
r/laravel • u/jonas-list • 11d ago
Hi everyone,
I built a monitoring app that replaces ohdear.app for my use-case. It's called Heptapod. The whole pitch is that it's self-hostable and open source. I love the guys at Spatie and have huge respect for them, but for my personal needs (lots of tiny sites), the pricing never made a lot of sense. I've been dogfooding it for a while now and while there are still a lot of rough edges, I'm no longer (too) embarrassed to show it to people. It covers most of the Oh Dear checks: uptime, performance, certificates, domain/DNS, broken links and mixed content, Lighthouse, cron heartbeats, application health and sitemap.
I realize that for larger clients ohdear.app is likely still the better solution, but if redundancy or multi-regional checks are none of your concern, you might still find value in a self-hosted alternative.
I would love to hear your feedback!
r/laravel • u/ProjektGopher • 11d ago
While the Internals list is not technically directly Laravel related, it does affect every single one of us.
Preface: what follows is the word-for-word transcript of the spoken dialogue in the video, chapter by chapter with timestamps, for anyone who'd rather read than click through. If this digest is still too long for you, we recommend copying it into your LLM of choice and asking for a summary of our summary.
PHP 8.6 is out today. Partial function application, a Duration class, a brand new polling API, and a lot more. And it shipped alongside security releases with 7 critical fixes. We'll get to both.
Hello world, it's Thursday, November 19, 2026, and here's what happened This Week in PHP Internals. 16 stories this week, so let's get into it. But first,
This week's episode is sponsored by… us, again. Since last week's call for work, we've taken a handful of calls, but nothing's locked in yet. So those 6 senior developer days a week are still open. If you've got a project in mind, book a call at artisan.build/start, or just send us a DM on any platform.
A correction to last week's social posts. On Mastodon, Threads and Pinkary, we wrote that Derick was okay with the shorter PECL timeline, and that Tim Düsterhus says the plan makes sense. But Tim's "makes sense" was about the first draft, before the timeline was cut. He hasn't commented on the shorter one yet, and he told us that he isn't 100% sure he likes it. The video had the order right. Thanks, Tim.
Links: Tim Düsterhus on the first-draft PECL timeline
This week's top story: PHP 8.6 is out today. Here are a few highlights. Partial function application lets you fill in some of a function's arguments now, with a question mark for the rest, and get back a closure that takes the rest later. A new Duration class represents elapsed time with nanosecond precision, so a timeout stops being a bare number of microseconds. The new polling API watches many streams at once, using epoll on Linux, kqueue on macOS, and the equivalent elsewhere, as a common base for event loops like ReactPHP and AMPHP. And there's clamp, which keeps a value inside a range, plus a SortDirection enum and default values for readonly properties. Sessions get safer defaults too: strict mode and HTTP-only cookies are on, and SameSite is set to Lax. The release page on php.net covers all of it. It calls 8.6 "Faster, Safer, More Powerful." Each headline feature has a side-by-side, before-and-after example, with a link to its RFC. So go read it. Link in the description.
Links: The PHP 8.6 release page
Also today, PHP shipped security releases for every supported version: 8.5.13, 8.4.28, 8.3.37 and 8.2.36, and PHP 8.6.0 ships with the same fixes. So, update. There are 17 advisories this time, and 7 of them are critical. The good news was in the pre-announcement: the critical ones "require either non-default configuration or uncommon setups", and each advisory spells out which setup. Three of them are in sessions. One is the upload-progress issue PHP warned about in October, where data gets written in one session format and read back in another. Its full advisory is out today, and the fix goes further than October's suggestion: upload progress is now off by default. If you switched it on yourself, it stays on, so anything that reads or writes those sessions needs to use the same serializer. Another critical one is in PHP-FPM, and it only matters if your web server keeps its connections to FPM open between requests. Standard nginx and Apache setups close them, and the advisory says those aren't affected.
Links: Release announcements · All of PHP's security advisories · The pre-announcement · October's upload progress advisory
One of today's critical bugs was found by Sebastian Bergmann, who created PHPUnit, and he's written up how he found it, in a post called "The wrong crash". After PHP2Shell, he boiled what those two bugs had in common down to a rule a program can check. He wrote: "once a request is over, nothing that outlives it may still point into its memory." While he was using that check to confirm one of the October bugs, it crashed somewhere it shouldn't have, and it crashed on the patched version too. So it had to be something new. The problem was in PHP's timezone cache. When PHP writes to its error log while it's starting up, it can cache timezone data for the timestamp, in memory that gets thrown away once startup ends. The pointer to that memory sticks around, and a fresh worker can follow it. The fix is a one-line change: outside a running request, those timestamps are now written in UTC. If you can't update right away, the advisory suggests fixing whatever PHP warns about at startup and restarting, or logging to syslog. The advisory credits Sebastian and Go Kudo. Sebastian sent the PHP team his method along with the bug, because, as he puts it, "Whoever finds one bug of a class owes such a project the means to find the others". His post goes much deeper than we can here, and it's linked below.
Links: Sebastian Bergmann, "The wrong crash" · The timezone cache advisory
The author of PHP's Scope RFC changed his mind, and then changed it back, in about 30 hours. Frode Børli's RFC gives each unit of work, like a request, its own scope. Last week, Larry Garfield called an empty new scope a landmine. On Friday, Frode agreed, and version 0.10 makes a new scope start as a copy of its creator's state. Then on Saturday, he changed his mind back. He wrote: "An object is a handle, not a value… a write inside the new scope reaches the creator. That is the leak a scope exists to prevent." The session can't be copied at all, he says, because it's a store with a lock. And he offered to withdraw the RFC if the list prefers the other direction. Larry replied that copying by hand shares objects in exactly the same way, and asked about coarser groups of state you could opt in or out of. Frode answered with his next version. The request arrays become "scope globals", and a new scope starts with them empty, the way a new process starts with empty globals. Then Larry suggested letting the thread rest until release week is over.
Links: Scope RFC · Frode Børli: version 0.10 · Frode Børli changes his mind back · Larry Garfield's reply · Frode Børli: scope globals
An RFC went from a vote date to withdrawn in a single day. Sjoerd Langkemper's openssl_get_channel_binding would hand userland the TLS channel-binding data that mail software like Roundcube needs for SCRAM-PLUS logins. On Tuesday, he announced a vote for this Friday. Jakub Zelenka, who looks after PHP's openssl extension, replied that one of its binding types doesn't work on TLS 1.3, and that the API was his biggest issue. He wrote: "My preference here is really to use a stream function (or potentially just meta data) and not introduce openssl function because it's inconsistent and hacky." That evening, Sjoerd withdrew the RFC, and said he won't pursue it further.
Links: openssl_get_channel_binding RFC · Sjoerd Langkemper announces the vote · Jakub Zelenka on the API · Withdrawn
A new RFC wants curl to ask your code before it connects anywhere. Xavier Leune's proposal adds CURLOPT_OPENSOCKETFUNCTION, a callback that runs after DNS resolution and before each connection, and returns true or false. That, he says, is the point where an SSRF policy can be enforced reliably. Checking the URL up front, the RFC says, misses the many ways to spell one address, and DNS can answer differently the second time. He wrote: "It applies to the address actually about to be contacted, on every redirect hop and for every address libcurl tries, whatever spelling the URL used and whatever DNS answered." Nicolas Grekas suggested dropping the address-family parameter, since an IPv4 address wrapped in IPv6 would be reported as IPv6. Xavier took the suggestion two hours after posting, and a polyfill already covers PHP 8.3 to 8.6.
Links: CURLOPT_OPENSOCKETFUNCTION RFC · Xavier Leune opens the discussion · Nicolas Grekas on the address family · Implementation · Polyfill
What happens when you return from inside a using block? Larry Garfield guessed, then checked with co-author Arnaud Le Blanc, and corrected himself. The generator is resumed first, so its cleanup runs, and then the function returns. The RFC now says that. Daniel Scherzer, one of the 8.6 release managers, sent six review points. An exception thrown after the yield seems to be silently ignored, yielded keys are dropped without an error, and he'd rather skip the special try using syntax, which he says "just saves 3 characters". There's no reply yet.
Links: Context Managers v2 RFC · Larry Garfield: "it will print A E C" · Daniel Scherzer's review
Two RFCs are back after a summer off. Daniel Scherzer revived Friends, which lets a class name other classes that can reach its protected members, but not its private ones. It can't go to a vote before November 27th. Gina P. Banyard had a quick look at the implementation and saw no issues, but says she'll vote against it. Private properties plus reflection, she says, is a valid way for related components to get in. Alexander Egorov wants it inverted, so the class that needs access declares it, because "a class must know neither its clients nor possible inheritors." And Ben Ramsey restarted his Working Groups RFC, a policy for PHP project working groups, after 4 months. He wants to move to a vote, and his message starts a 14-day cooldown first.
Links: Friends RFC · Daniel Scherzer resumes the discussion · Gina P. Banyard · Alexander Egorov · Working Groups RFC · Ben Ramsey restarts it
The author of Str\Matcher says his own benchmarks oversold it. Artem Ukrainskiy wrote: "The old numbers ran one text over and over. The CPU learned it, and the new class looked 3-4 times faster than it is." Version 0.4 runs over a pool of different texts, with three real-data scenarios: comment moderation, bot detection by user agent, and linking PHP manual pages. With a reused object, he now reports 8 to 123 times faster than the fastest existing method, and says one call on a short text is slower. He says the main use case is worker servers like FrankenPHP, where the object is built once. He also dropped the count parameter Larry Garfield disliked, and added equality comparison.
Links: Prepared Literal String Matching RFC · Artem Ukrainskiy's v0.4 and new benchmarks
Quick hits. Weilin Du's RFC to make ini_get_all accept extension names in any case passed, 20 to 0, with 3 abstentions. It's already merged for PHP 8.7.
Links: Case-insensitive ini_get_all() RFC · Vote closed · Merged
Chris Abner Herrera Navarro's grapheme_str_pad vote is open, at 6 to 0 so far, and closes December 2nd.
Links: grapheme_str_pad() RFC · Vote opened
James Titcumb plans to open the vote on sunsetting PECL next Wednesday, November 25th.
Links: James Titcumb plans the vote
David Carlier proposed gethostaddresses, so the standard library can look up IPv6 addresses through the system resolver, and he plans a pull request.
Links: David Carlier's proposal · Issue
On PASSWORD_BCRYPT_WRAP, Mirco Babin pressed his objections again, and Rowan Tommins answered with numbers: a 54-byte pre-hash has 1.1 times 10 to the 130th possible values, against 2.5 times 10 to the 55th for bcrypt's own output.
Links: Rowan Tommins's numbers · PASSWORD_BCRYPT_WRAP RFC
Ignace Nyamagana Butera asked Máté Kocsis why query-parameter building options are set when the object is built, instead of when the string is.
Links: Ignace Nyamagana Butera's question · Query Parameter Manipulation discussion
And php.net's mail server moves data centres tomorrow, Friday, from 08:30 UTC, with about two hours of downtime.
Links: The announcement · Update
So that's the week. PHP 8.6 is out, so go open the launch page, and today's security releases fix 7 critical issues, so update. Frode Børli wants new scopes to start empty after all, an openssl RFC was withdrawn the day its vote was announced, and curl may soon ask before it connects. Links below.
The PHP Foundation funds more than half of ongoing php-src commits, so if you use the language, maybe consider donating at opencollective.com/phpfoundation, or try guilting your employer into it.
If you found this useful, a like or a comment helps more people find it. And if you missed last week's episode, where PECL got a shutdown date that moved up two years in six days, that's a good one to watch next. And if you'd like to work with us, book a call at artisan.build/start. We're Artisan Build. See you next week.
r/laravel • u/NIFO_43 • 13d ago
Most Laravel apps I've seen make PDFs with Browsershot or Dompdf. Browsershot gives you real CSS, but you need Chrome and Node on every server, in every Docker image and in CI. Dompdf and mPDF install with Composer, but they don't know flex or grid, so templates end up as nested tables with inline styles. I wanted both at once, so I wrote my own engine.
Fagus is not a wrapper around a browser. It's a layout engine written in Rust that parses the HTML and CSS, lays out the pages itself and writes the PDF directly. The goal is that a document looks exactly like it does when Chrome prints it, and I test it against Chrome's output with the Web Platform Tests and a corpus of real documents.
Setup is just
composer require nforst/fagus
The package downloads the binary for your platform and checks it against a SHA-256 hash (Linux incl. Alpine, macOS, Windows). PHP starts it as a worker and keeps it running, so in a queue worker or under Octane every PDF after the first goes to an engine that's already warm.
You can render a Blade view
or plain HTML from anywhere, a string from the database, a template a customer wrote, whatever you have
The CSS part is what I care about most. You write CSS like for a web page, flex, grid, custom properties, calc(), web fonts, SVG, and you can check the layout in Chrome's print preview while you build the template, because Fagus is meant to give you the same result. Tailwind v4 works as well, including the print: variants. In Laravel you just hand it your compiled stylesheet
Headers, footers and page numbers come from @page in the CSS, not from separate header templates. Tables repeat their header on every page, rows can break cleanly, and a table of contents can show real page numbers with target-counter().
E-invoices were actually the reason I started this. With facturX() you pass the invoice XML your app already creates (or one from a library like horstoeko/zugferd), and Fagus writes a PDF/A-3 file with the XML embedded and the right metadata, so you get a valid ZUGFeRD / Factur-X invoice, also with the XRechnung profile. No extra tool afterwards. PDF/UA for tagged, accessible PDFs is built in too.
Fagus never loads anything from the network. Images, fonts and stylesheets are handed over by your code, either directly like the logo above or through a resolver callback the engine asks when it needs a file. So user supplied HTML can't make your server fetch URLs.
On speed, these are the times per PDF on my M2 Pro with the same invoice in every engine, once the process is running
It also needs far less memory, about 22 MB for a one page invoice where Chrome sits at around 250 MB, and it stays flat over thousands of renders, which matters for long running workers. Four workers in parallel did 224 PDFs per second, Chrome with four tabs 24.
It's 0.2.0 and Laravel 13 only, and there's no JavaScript. Some CSS isn't supported yet, but the playground tells you what it ignored if you paste your own template in: https://fagus.niklasforst.de/playground
Repo: https://github.com/nforst/fagus Docs: https://fagus.niklasforst.de/docs
If a template comes out different than in Chrome, I'd like to see the HTML.