Skip to content

Posts › Development

Development

Why Laravel for Rust and Go: motives, risks and opportunities

Taylor Otwell says the Rust and Go ports are about where PHP stands in the industry and about code written by agents. Speed comes after. The motives Laravel states, the ones it leaves unsaid (a single binary, native concurrency, memory safety, Laravel Cloud), and what the move puts at stake for Laravel, PHP developers, package authors and the Go and Rust communities. With a dated baseline to follow how it goes.

19 min read

"How many ambitious, net-new projects in 2027 and beyond are going to choose PHP?" Taylor Otwell asks this in the letter that announced Laravel Rust on 1 December 2026. The letter's answer is Laravel Rust, and Laravel Go followed the next day.

In the first two parts of this series I measured the same app on the three stacks (first look) and ported one of my packages to both new frameworks (retrospective). This part is about the question behind both: why Laravel did it, what the move puts at risk and what it opens up. For each motive I keep apart what Laravel states in its own channels from what I or others read into it.

The timeline

The public part took a week, and the work started two months earlier.

  • 5 September 2024. Laravel raises a $57M Series A in partnership with Accel.
  • 24 February 2025. Laravel Cloud launches, according to its changelog.
  • 5 October 2026. The laravel/rust-framework repository is created on GitHub.
  • 12 October. Otwell describes the project as "something spiritually similar to Laravel" designed for "a world where humans no longer read or write code by hand", and adds that "a blind '/goal port this to Rust' is naive".
  • 10 November. The laravel/go-framework repository is created.
  • 29 November. laravel-rust 0.1.0 appears on crates.io.
  • 1 December. Laravel publishes the letter, Introducing Laravel Rust, a benchmark and a post announcing that Laravel Cloud now runs Rails, Django, Go, Node and Rust apps.
  • 2 December. go.laravel.com v0.1.0 is tagged, and Introducing Laravel Go follows 24 minutes later.
  • 4 December. Both frameworks reach 0.2.0.

The motives

PHP and the industry

The most direct answer comes from a tweet. On 3 December, replying to someone who had taken up the benchmark as a challenge, Otwell wrote: "For me Laravel Rust and Laravel Go are not even primarily about speed. [...] For me it's about having the best-in-class framework in languages that are thriving and growing. Even if PHP (and I still love PHP!) were as fast as Rust, it's broadly not taken seriously as a tech stack choice by the industry, and that will not change."

The letter says the same thing from the side of the community. It asks what the decline of PHP in new projects means "for my career", and states the decision plainly: "I am not content to sit quietly on the sidelines while the most ambitious projects of tomorrow chose other stacks." It also calls programming languages "an implementation detail" of Laravel's philosophy. Read together, these sentences put the brand first: Laravel is a set of conventions and a developer experience, and PHP is the language it happened to be written in.

This is the motive Laravel ranks first, in its own words, so it is the one the rest of this post measures against.

Code written by agents

The second stated motive is in both launch posts, in the same paragraph: the frameworks are built "with the forward-looking perspective that humans will increasingly neither write nor manually read application code at scale. In that world, strong guardrails, strict compilers, and batteries-included conventions matter more than ever." The Go post puts it as a question: "In the AI age, why not write in very fast, type-safe, compiled languages?"

The idea is that an agent writes code faster than a person can review it, so the checks have to move into the compiler and into the conventions. Laravel Rust checks column names, relationships, validated inputs and authorization at compile time. Laravel Go trades "a bit of the 'magic' syntax" of the Rust version for plain Go, and its docs (v0.1.1) speak of "explicit wiring". Both frameworks ship an AGENTS.md, a CLAUDE.md and a folder of agent skills in every new app, and the Rust docs (0.1.4) say that the framework's "strong static typing" gives coding agents "the context they need".

The frameworks were also built this way. The letter says Otwell made "heavy use of cloud agents" to "reimagine Laravel in two months instead of fifteen years", and that every API and every page of documentation was "hand-curated and hand-tuned" by him. Laravel presents this as a position. I found no evidence offered for the claim that typed, compiled languages make agents produce better applications, and it is the bet the whole project rests on.

The premise has a second side, which I leave as an open question. If agents write most of the code, they also propose the stack when someone asks them to start a project, and I think they tend to propose what they know best: what they saw in their training data and what they find online. In PHP that answer is already Laravel. In Go there is no obvious one. Ask an agent for a full-stack web app in Go and no framework comes first, which is the gap Otwell describes. Aaron Francis writes that "AI changed which languages teams pick".

The effect would be slow. Most models in use today were trained before Laravel Rust and Laravel Go existed, so agents meet them only through search, documentation and discussion. The next generations of models will be trained on everything written about the launch, Hacker News threads, Spatie's ports and posts like this one included. Is part of the goal to make Laravel visible enough that agents end up choosing it on their own?

Teams that already write Go and Rust

Laravel also points to what its teams and customers do today. Aaron Francis, in the Cloud post: "Our own teams write Go and Rust next to PHP now. So do our customers." The same post quotes Otwell: "Even the teams that we have at Laravel internally are no longer writing just PHP."

The choice of the two languages has a reason of its own. Otwell writes that Rust and Go were "the two that came to mind", and that he left TypeScript out because it already has established frameworks, while Go is one of the most deployed backend languages without "a definitive batteries-included, full-stack framework". Laravel Go fills that gap, and the Go community will decide whether it wanted it filled.

One binary, native concurrency, speed

Laravel lists the technical motives as benefits, and Otwell places them after the first two. They are real, and the first part of this series measured some of them.

A Laravel PHP app in production is a stack: a web server such as nginx, PHP-FPM with a pool of worker processes, and the framework booting on every request. Octane removes the per-request boot by keeping the app in memory, and to do that it needs an application server: FrankenPHP, Swoole or RoadRunner. A Laravel Rust or Laravel Go app compiles to a single binary with the HTTP server inside, which you run under systemd or in a container. In my measurements the boot that Octane removes was about 3 ms of CPU per request on PHP. In the Rust and Go apps that layer is gone.

Concurrency follows the same line. Laravel Rust is built on Axum and Tokio, and its docs (0.1.4) say "a handful of threads can serve thousands of concurrent requests, and a request waiting on the database or another service never holds up the rest". Laravel Go runs each request in its own goroutine on the standard net/http server. PHP-FPM serves one request at a time per worker process. PHP has had Fibers since 8.1, the True Async RFC is listed as canceled on the PHP wiki after its vote closed in February 2026, a successor RFC on concurrency in the engine is under discussion, and Octane's concurrent tasks require Swoole. A PHP developer who needs to wait on three services in parallel has to choose an extension and a server. In Rust and Go it is part of the language.

Then there is speed. Laravel's own benchmark, run on Laravel Cloud on a simple two-endpoint app, gives Rust 18 times the throughput of PHP, and the same post says that under manageable load latency is "comparable" across frameworks, so "it comes down to money". My numbers point the same way. On my app a PHP request costs 7 to 11 ms of CPU, and a Rust request a fraction of a millisecond. On an instance with a tenth of a CPU, Rust served 243 to 336 requests a second, Go 128 to 181, and every PHP variant fewer than 10.

Memory safety, the motive nobody stated

Laravel's launch posts never mention memory safety or PHP's vulnerabilities. It is still a real difference, and it deserves a precise statement.

PHP code manages memory automatically. A Laravel app cannot overflow a buffer through its own PHP code. The PHP engine, however, is written in C, and so are its extensions, and memory bugs in them affect every app that runs on them, however well the app is written. On 21 October 2026 PHP shipped an emergency release for two critical flaws in the engine, CVE-2026-109618 (memory corruption after an out-of-memory condition) and CVE-2026-109619 (a use-after-free), both rated 9.2 on CVSS v4 and both leading to remote code execution. They were fixed in 8.2.35, 8.3.36, 8.4.27 and 8.5.12, and CISA added them to its list of exploited vulnerabilities on 26 October. On 19 November another release fixed a batch of use-after-free bugs, several of them critical. Earlier cases of the same kind include a heap buffer overflow in array_merge() (CVE-2025-14178, December 2025).

Laravel felt this as a host. Its post-mortem describes patching every app on Cloud in about 27 hours. The same post covers a critical Node.js release on the same day, so the problem belongs to every runtime written in C, and PHP is one of them.

The dates rule this out as the origin of the project: the Rust repository is more than two weeks older than the October CVEs. It is context. Rust and Go remove this class of bug from the code the framework runs, with two limits. In the Rust crates I looked at (0.1.4) the framework's own code has a single unsafe function, and the dependencies underneath (Tokio, Axum, the database drivers) have their own. Go is memory safe apart from data races, and the Laravel Go docs tell you to run your tests with -race to catch them.

Funding and Laravel Cloud

This last motive is the one Laravel never states and the one most commentators reach for. On Hacker News a commenter called first-party Laravel frameworks in other languages "a good growth marketing move for Laravel Cloud", and an agency blog asked whether the launch is "really about selling Laravel Cloud".

The neutral reading starts from the funding. When Laravel raised its Series A in 2024, Otwell wrote that "Laravel Cloud will be the platform for shipping those applications that this community deserves". A company with venture capital has to grow, and the market of new PHP projects is the one the letter worries about. Cloud is where Laravel turns adoption into revenue, and a Laravel that also exists in Rust and Go can reach teams that would never have picked PHP.

Several facts fit this reading. Laravel announced Cloud support for Rails, Django, Go, Node and Rust apps on the same day as Laravel Rust, on every plan from $5 a month. The deployment guides of both frameworks end with a section on Cloud, which they call "the best way to ship and scale" the app. Cloud's feature table gives managed queues to Laravel Rust and Laravel Go apps and leaves them out for generic Rust and Go apps. Laravel's benchmark was run on Cloud and measures what matters to a host: at 50 requests a second Rust uses 4.2% of CPU, Go 7.2% and PHP 52.4%, and an app wakes from scale-to-zero in 154 ms on Rust, 184 ms on Go and 712 ms on PHP.

One detail complicates the picture. A host that bills compute earns less from an app that uses about a twelfth of the CPU. The revenue logic works through the number of apps and teams on the platform, and through the cost of running them, which falls for Laravel as well.

The facts also point the other way. Both frameworks are MIT licensed, the binary runs anywhere, and my Rust and Go showcase apps run on Render's free tier.

The critical reading remains a question, and I leave it open: are the ports first of all for the community, or for the people who invested in Laravel and expect a return?

Risks and opportunities

The same fact can be a cost for one group and an opening for another, so I sort the consequences by who carries them.

Laravel, the company

The first risk is the workload. Otwell writes that both frameworks "will be developed and maintained in parallel along with Laravel PHP", and Laravel PHP comes with Livewire, Inertia, the starter kits and the products built around them. The Rust post promises that the remaining gaps in parity will close "within the coming weeks". Three frameworks kept at parity by one company is a large commitment, and parity is where drift would show first.

The second risk is quality. A framework written in two months with agents, in two languages at once, carries security-sensitive code: authentication, encryption, sessions, CSRF. Otwell says it is "not a 'slop fork'" and that he curated every API. On Hacker News one commenter read part of the Rust repository and called the code "slop", and the agency blog above raised the question of trusting AI-written authentication and encryption before an independent review. Neither claim has been tested yet. The first serious security review of either framework will matter more than any benchmark.

The opportunity Laravel names is the enterprise. Otwell wants Laravel behind "the most ambitious, world-changing web applications", in languages "broadly taken seriously by software engineering as a profession". I disagree with this one, and the facts are on my side for now. Both frameworks are at 0.2.0, the Rust docs call it a beta, stable releases are announced for later, the code was written in two months with agents, and the brand comes from the PHP community. A company that rules out PHP today is unlikely to adopt a 0.x framework with that history, and I expect that to hold at least until there are stable releases and a track record. My personal opinion goes further: I think the exclusion of PHP in enterprise is overstated in the first place.

PHP developers

The risk I see as the largest is a prophecy that fulfils itself. When the creator of the most visible PHP framework writes that PHP "is broadly not taken seriously as a tech stack choice by the industry, and that will not change", that sentence becomes an argument in the hands of every CTO who was already leaning away from PHP. The letter says Laravel PHP "is not going anywhere, and it is not entering maintenance mode", and the weekly releases go on: 13.45.0 shipped on 1 December. A reassurance and a forecast now coexist in the same letter, and the forecast is the part that gets quoted. If the open question about agents has a yes for an answer, the same mechanism works against Laravel PHP: every new project an agent starts on Laravel Go is a project that PHP loses.

A developer who moves over meets the costs of a young stack. The APIs change: laravel-rust went through eight versions on crates.io between 29 November and 4 December, and the upgrade guides of both frameworks say that minor versions before 1.0 can break the API. The feedback loop gets a compile step. In my measurements a clean release build took 3 min 2 s on Rust and 1 min 38 s on Go, against 74 s for the PHP image, and Laravel's own builds on Cloud show the same order. Then there is the pull toward Cloud. The guides point there, and the framework-specific features live there. The binary runs anywhere, and the convenience is on one platform.

The opportunities are concrete too. The mental model carries over: routes, controllers, migrations, validation, queues and Artisan keep their names and their place. When I ported my package, Go read close to PHP, with plain structs and functions. A Laravel developer can now write Go or Rust inside conventions they already know, and that can open doors in teams that filter out PHP. Hosting gets cheaper: an instance with a tenth of a CPU serves hundreds of requests a second on Rust and Go, where PHP queues for seconds. If Laravel's bet on agents is right, the compiler also becomes a reviewer that never gets tired.

Package authors

Spatie moved first. On 1 December, the day of the launch, Freek Van der Herten announced the Rust ports of a selection of their packages, with 27 crates published at 0.1.0, and on 3 December the Go ports: 44 packages, 26 of them for Laravel Go. The list covers the packages most Laravel apps install, such as Permission, Media Library, Query Builder, Activitylog, Backup, Translatable and Sitemap. Their Rust repositories were created on GitHub from 23 November, a week before the public release, and freek.dev already runs on Laravel Rust. Within a week of the launch, a large part of the everyday Laravel toolbox exists in both languages, at 0.1.

The gap is in the user interface. Livewire, Filament and Nova have no Rust or Go version. Inertia has an alpha adapter for Rust, and Laravel pairs both frameworks with Inertia and React or Vue. My Rust and Go showcases use templates and htmx because there is no Livewire to port. Teams that build on Livewire or run their back office on Filament or Nova have the strongest reason to stay on PHP, and this cost will last longer than the missing utility packages.

For an author the space is open and fills fast. Spatie ported 44 packages in a few days, and my own package was available for both frameworks within days of their release. A port now takes days, so being early is cheap, and the well-known packages already have theirs.

My own port is also where I see the agent risk up close. Otwell called a blind "/goal port this to Rust" naive. My ports did run under a /goal, and the /goal came last. Before it there was an extensive grilling session, in which I examined and took every main decision myself, then a spec, tickets and 16 decision records per port. Even with that groundwork, the agents skipped the test-first step they had been given. It was caught after the merge, and the repair with mutation testing turned up the one real bug.

I am no expert in Rust or Go yet, and in the retrospective I asked readers who are to review the choices. Spatie is in the same position and says so: "We're not Rust experts yet", and "For this first pass, we mainly reviewed the public APIs and extension points. We spent less time on the code underneath." A package is small enough to review afterwards. The question for a framework written the same way, at a much larger scale, is who reads the code that the premise says nobody will read.

Go and Rust developers

Go has a culture of the standard library and small dependencies, and Laravel is the opposite: conventions, a container, a full stack. The reactions on Hacker News show it: "Not a single go dev would use this", "the exact opposite of how the Go philosophy works", "Large frameworks have been a dead idea for 20 years now". Rust web developers usually assemble Axum, SQLx and the other pieces themselves. Laravel Go and Laravel Rust will need users from these communities, and the first reactions I read were cold.

The opportunity is the one Otwell describes: Go gets a batteries-included, full-stack framework with Inertia and a modern frontend, which according to Otwell it lacked.

What to watch

I have no verdict on this. The launch is a week old, and the answers will come from how the community and the market respond, which needs following day by day. These are the signals I will watch:

  • the stable releases, and how much the APIs change before them;
  • the first independent security review of either framework;
  • how often Laravel PHP keeps releasing, and what it gets that the ports do not;
  • which packages appear for Rust and Go beyond Spatie's, and whether Livewire or Filament get an answer;
  • what Laravel says about Cloud, and whether features stay specific to the ports;
  • the response of the Go and Rust communities beyond the first threads;
  • downloads and repository activity, starting from the baseline below.

The baseline, taken on 6 December 2026:

Version GitHub stars Downloads
Laravel Rust (laravel/rust, laravel/rust-framework) 0.2.0 2,659 and 1,043 95,639 on crates.io
Laravel Go (laravel/go, laravel/go-framework) v0.2.0 1,667 and 586 not published by the Go proxy
Laravel PHP (laravel/framework) 13.45.0 35,406 558,512 a day and 30.7 million a month on Packagist

The two numbers for each port belong to the app skeleton and to the framework. The crates.io count includes CI builds and the first days of interest, and the Go proxy publishes no download counts, so the Rust and Go columns are not comparable.

I will add dated updates to this post as these numbers and these signals move.

Get the next posts by email

An occasional newsletter with my new Posts, with one-click unsubscribe. How I handle your address.