Skip to content
AXVI BUILD · WRITE · SHIP
Blog

Two Books and Wiretap 0.1.0: What I Shipped This Month

Two books for Laravel developers who are curious about Rust, the first public release of Wiretap, and the WebSocket server that came before it. What each one is, who it is for, and why I built it.

Two Books and Wiretap 0.1.0: What I Shipped This Month

For twelve years I wrote software for industrial automation, where code runs every day and nobody is around to restart it. Then I spent seven years with Laravel. This month the side projects that kept piling up in my head finally left my laptop: two books and two tools. Here is what each one is and who it is for.

Rust for Laravel Developers

I put off Rust for a long time. Every article started with ownership and lifetimes, and none of them started from the code I already write every day.

So the book does it the other way round. Every concept starts from the PHP you would write, then shows the Rust version, then explains why it is different. Traits start from interfaces, structs from classes, Option from returning null, iterators from PHP arrays.

  • 23 chapters, ending with a complete project on Axum and sqlx
  • every example compiles and passes its tests; the companion code is on GitHub
  • PDF and EPUB on Leanpub

It is for Laravel developers who have heard that Rust is fast and safe and want to know whether it is worth their evenings, without wading through a systems programming textbook first.

Loco for Laravel Developers

If the first book answers "can I write Rust?", the second answers "can I build a web app in it the way I build one in Laravel?". Loco is a Rails-like framework for Rust: generators, migrations, models, background jobs, mailers, all in one place.

In the book we build a complete blog in 13 steps, from the first command to a Docker deploy. Every step is a git tag in the companion repository, so you can check out any step and see exactly where you are. At each step we compare how Loco does it with how Laravel does it.

It is on Leanpub too, and the two books are also sold together as a bundle.

Wiretap 0.1.0

Wiretap is the tool I wanted for my own projects. Telescope is great locally, but in production I ended up with one service for errors, another for uptime, a third for SSL expiry and Mailpit for emails. I wanted all of it in one place, on my own server.

Wiretap is one Docker image plus a zero-config Laravel package:

  • request traces with every query, job, cache call, mail and HTTP call in one tree
  • N+1, duplicate and slow query detection
  • replay of requests and jobs, retry of failed jobs
  • a mail catcher, so test emails never leave the server
  • uptime, SSL certificate, domain expiry and scheduler heartbeat checks
  • alerts to Telegram, Slack and Microsoft Teams

It supports Laravel 12 and 13. This is 0.1.0, so expect rough edges, and if something breaks, please open an issue. There is more on the Wiretap for Laravel page.

WSBro

WSBro came first. It is a Pusher-compatible WebSocket server in Go: one 20 MB binary, no PHP process to keep alive. Laravel's own reverb and pusher broadcasters and Laravel Echo talk to it without any changes, and it has a live dashboard where you can see connections, channels and events as they happen.

If you run Laravel broadcasting and are tired of paying for Pusher or babysitting a long-running PHP process, give it a try.

What's next

The tools are open source under the MIT license and the books will keep getting updates on Leanpub. Next I want to write here more often: shorter posts about things I ran into while building these, from DuckDB inside a Go server to Composer refusing to install old Laravel versions.

If you try any of this, I would love to hear what worked and what did not. You can find me on X and LinkedIn.

Esc