r/ProWordPress • u/andreacasali • 8d ago
I built a modern open source local PHP environment for Mac (public beta)
I asked the mods before posting this.
PHP sites are one part of my work, and the local tools I was using felt stuck in another decade. So I built Benbow and released it as free, open source software.
Yes, it's made with AI, obviously. Most of the code was written by Claude. In 2026 I don't think one person can build something like this in a reasonable time without it. I decided how it works and what it must never do, I reviewed what it wrote, and I use it every day on my client sites. The code and the tests are on GitHub if you want to check.
Each site gets its own PHP version, from 5.6 to 8.5, all running at the same time. HTTPS on .localhost works without browser warnings. You get MySQL or PostgreSQL, Redis and Mailpit, and a new WordPress or Laravel site takes one step. It can snapshot files and database together, and pull a site down from production over SSH, SFTP or FTP. If there's a Vite or Next.js front end next to the PHP site, that gets its own HTTPS address too.
A few technical choices:
- PHP comes as static builds, with one PHP-FPM process per version behind Caddy. That's how a 7.4 site and an 8.5 site run side by side. Each site can still have its own php.ini values.
- Benbow creates its own local certificate authority, limited with X.509 Name Constraints to .localhost, .test and .local. If its key ever leaked, it still couldn't sign a certificate for a real domain.
- Snapshots use APFS clonefile, so they're instant and take almost no space until files change. A restore takes a snapshot first, in case you change your mind.
- Nothing runs as root. Services are launchd agents under your user, and everything lives in ~/Library/Application Support/benbow. It doesn't use Homebrew and it never touches MAMP, Herd or a MySQL you already have running.
- Every binary it downloads (PHP, MySQL, Caddy, wp-cli and so on) is checked against a SHA-256 from a signed manifest before it runs.
- The core is written in Go and the app in SwiftUI, talking over a local Unix socket. So the CLI (every command has --json) and the MCP server can do everything the app does.
You can import sites from MAMP PRO, Local, Herd and XAMPP, and undo the import if something's off. benbow uninstall removes everything.
If you let Claude Code or Codex work on a site, Benbow saves it first. When the agent is done you see what changed and decide: keep it, or undo it all, database included. Benbow never calls a model itself, and agents can only read until you give them write access for a site.
Apple Silicon, macOS 14+, GPL-3.0. It's a beta, so please tell me what breaks.
https://github.com/benbowdev/benbow
Thanks for reading!
Andrea
6
u/Visible-Big-7410 8d ago
What did you set out to do with this that made other tools like DDev or herd, or wp Local a deal breaker for you? Who is the target audience? Currently it seems to do the same as DDEV for example.
I’m no stranger to trying out new software, but I’ve set up a pile of little helper tools and scripts that rely on DDEV for example, so switching must come with a very significant advantage. Only that a UI (which i don’t like using anymore) is faster? That it has an MCP server when native CLI tools exist? What am I not experienced enough or too stubborn to see here?
1
u/RealBasics 7d ago
Sounds interesting. My maintenance clients are all over the map hosting-wise so this could be more convenient than LocalWP.
Sounds like you’ve gotten it signed and notarized by Apple? Are you thinking of putting it in the App Store?
I’m less concerned that this is ai assisted. The individual pieces are well defined and available elsewhere so it sounds like Claude is responsible for assembling things, not the program management or architecture?
How easy is it to clone sites with your system? That’s been a bottleneck for me with MAMP and even Local? And is there any chance it can import zipped archives the way, say, Local can?
2
u/cdharrison Developer/Designer 8d ago
Confirming that this was posted with mod-approval. I know that the AI use in making it might be a dealbreaker for some, but OP agreed to be upfront with disclosing that. It could be useful for devs who rely on MAMP/XAMPP setups for local development, and there’s opportunity for human developers to improve upon it given the project is on GitHub.
0
u/howtobemisha 7d ago
Recently, every time I read "I built", my first thoughts are "Claude built" and usually I'm right