r/ProWordPress • u/andreacasali • 14d 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
1
u/RealBasics 13d 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/andreacasali 13d ago
Thanks, this is the kind of feedback I was looking for!
App Store: no. Sandboxed apps can't run servers in the background, install a local certificate or edit /etc/hosts. It's a signed and notarized DMG that updates itself.
Cloning: pulling from production or staging works well, over SSH, SFTP or FTP. You get the database and uploads, and on WordPress URLs are replaced properly, serialized data included. Duplicating a local site is still basic: a second address on the same folder, without copying the database, because that's all my MAMP workflow needed. A real clone is next on my list.
Zip archives: not yet. The importers read MAMP PRO, Local, Herd, Valet and XAMPP directly, so Local sites come over without exporting (the site has to be running in Local). A Local zip import is a good idea though. Do you use Local exports more, or plugins like Duplicator or All-in-One?
1
u/RealBasics 13d ago
On cloning: The first thing I ever did with a desktop server (the old, excellent, now dead ServerPress version) back in 2012 was debug a hellish intermittent bug that I finally tracked down by setting up a local instance at its last known state, cloning it, triggering the breaking condition, and then diffing the database dumps (!!!). I’d been tearing my hair out for four days on live and that let me solve it in about an hour. Saved my first big Wordpress job and gave me a heck of a lot of confidence.
Now I use it to clone new builds from a pre-configures reference site I keep up to date on Local. I’d like to keep doing that.
As for importing from zips, both the old ServerPress and Local basically let you “file open” any zip of a site as long as it had the full folder tree and a .sql file somewhere (could be almost anywhere.)
That meant they could open Duplicator, cPanel, WP-Engine, Kinsta, Wordpress.com Jetpack backups, BackupBuddy, etc. and even hand-assembled zips automatically.
For me I’ve got nearly 15 years of old archived sites (I never delete archived sites) and it’s surprising how often I’ve had occasion to revisit an old site. And yeah, including sites that last ran on PHP 5.4.
Finally, since I do a fair amount of site “restoration and repair” I end up with some legitimately decrepit sites (eg a critical academic site that had last been updated in 2009!) Since those usually come as a combined file and DB zip an import-from-zip.
You’re under no obligation to add those features — it’s not part of your workflow and I doubt it’s that many other people’s. But they are convenient.
(Bonus point: if your app can export zipped snapshots that can be convenient for handoffs to clients who won’t provide server access. And also convenient for archiving your own work when you don’t want to bother storing whole Benbow snapshots.)
2
u/andreacasali 12d ago
That debugging story is great, and it's exactly the case for a real clone: same state, break one copy, compare. You've convinced me it's more than a nice-to-have, so a proper clone (files + database under a new name) is moving up.
For the reference site: Benbow has blueprints, which you can save from an existing site. They keep wordpress.org themes and plugins at their versions, options and mu-plugins. But they don't carry content or premium plugins, so for your workflow the clone is the right answer.
Zip import: "any zip with a folder tree and a .sql somewhere" is a nice, simple rule, and it would cover Duplicator, cPanel, host backups and hand-made zips at once. I'm writing it down that way.
Old PHP: Benbow goes back to 5.6 (Apple Silicon, macOS 15+), not 5.4 but most 5.4 sites run on 5.6 though.
Zipped snapshot export: good point, for client handoffs and for archiving. It fits well next to zip import.
No promises on dates, but this is really useful. Thanks for taking the time.
2
u/andreacasali 8d ago
Quick follow-up: you talked me into it. Both are in beta.10.
Clone: right-click a site, Clone. You get a full copy under a new name: the folder (APFS clones, so it's instant and takes almost no extra space), its own database and user, wp-config.php pointed at it, and the URLs replaced in the database. So "keep a reference site, clone it for each new build" works now. So does your debugging trick: clone, break one copy, diff the dumps.
Zip import: I went with your rule. Drop a .zip or .tar.gz that has the site's folder tree and a .sql somewhere, and Benbow finds the site and the dump, creates the database, loads it and fixes the URLs. It also picks a PHP version that fits the WordPress version it finds, so a 2009 site doesn't land on PHP 8.4. It's built for cPanel, host backups, Local exports and hand-made zips. Formats like All-in-One's .wpress aren't covered.
There's also an optional MySQL 5.7 now, for sites that never ran on anything newer.
Zipped snapshot export isn't there yet, it's on the list. If you try it on one of your old archives, I'd love to know what breaks.
2
u/cdharrison Developer/Designer 14d 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 13d ago
Recently, every time I read "I built", my first thoughts are "Claude built" and usually I'm right
1
u/andreacasali 13d ago
No need to guess, I said it right in the post 😄 Claude wrote most of the code, and on my own it wouldn’t have been doable in any reasonable time. But Claude doesn’t wake up one morning and decide to build a MAMP replacement: I needed a tool for my own work, so I decided what it should do and what it must never touch on my Mac, reviewed every plan before it wrote a line, and tested it next to the MAMP PRO setup I actually use. Then I shared it for free.
The less fun parts are mine too: the app is signed and notarized by Apple, component updates come from a signed manifest, and uninstall really leaves nothing behind. It’s all on GitHub under GPL, so anyone can look at the code, report bugs and suggest improvements.
1
u/howtobemisha 13d ago
so much text, curious, if this reply also ai-written? :)
2
u/andreacasali 13d ago
I’m Italian and English isn’t my first language, so Claude helps me translate my replies. What’s wrong with that in 2026? Feels like using a spellchecker to me.
1
u/RealBasics 13d ago
First emdashes and bulleted lists made you aI. Now you’re AI if you talk too much? What’s next, writing complete sentences?
1
u/howtobemisha 13d ago
He confirmed it in the next reply. I am not saying that there is something wrong, just curious
6
u/Visible-Big-7410 14d 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?