laman
A local PHP development environment for Windows: one Go binary, HTTPS .test sites, no config.
The problem
Laman is Malay for courtyard, and laman web means website. It is a local PHP development environment for Windows in the spirit of Laragon and Laravel Herd: PHP, databases and HTTPS .test sites with nothing to configure.
Every folder in ~/Sites should simply be a site at https://<folder>.test, with the right PHP version, a trusted certificate and its database running, without administrator rights to install and without hand-editing a web server config. It also has to live alongside whatever else a Windows developer already runs, like WSL, Docker or Laragon itself.
What I built
One self-contained laman.exe with a CLI, a web dashboard and a tray icon, plus an Inno Setup installer that needs no admin rights.
- Sites. Every folder in a project folder is served, with per-site PHP versions, grouped projects (
acme\apibecomesacme-api.test) and links for one-off folders. - Services. PHP, MariaDB, PostgreSQL, Redis and Mailpit, each switchable, with versions installed, switched and upgraded from the dashboard.
- JavaScript apps. Nuxt, Next.js, Vite, Astro, Quasar and Node servers are detected from
package.json, and their dev servers run behind the project’s.testname with HTTPS and live reload. - Laravel helpers.
laman newscaffolds Laravel (with the official starter kits), WordPress, Vite or plain PHP projects with a database ready. Queue workers and Reverb run per site in the background, and a site detail view reads the project’s own.envto show what it uses. - Moving in and sharing. An importer brings projects and databases over from Laragon, and
laman sharegives any site a public HTTPS link through a Cloudflare quick tunnel.
Architecture & stack
Written in Go. Caddy runs inside the laman daemon as a library: laman renders a Caddyfile and loads it in process, synchronously, so a new site is live when the command returns. Each PHP version a site needs gets its own pool of php-cgi workers on its own block of ports, and pools nobody uses are stopped. The daemon supervises the workers and databases and restarts any that exit.
The dashboard is embedded in the binary and served on a local control port. Its control API only accepts requests with a custom header and a loopback Host, so a web page can’t forge calls to it. PHP and MariaDB downloads are checked against their official SHA-256 checksums.
Highlights
- A CA that can’t impersonate real sites. laman’s local certificate authority is name-constrained to the dev TLD,
localhostand loopback IPs, so even a leaked key is useless against real websites. It is also added to PHP’s CA bundle, so PHP and Composer can call other.testsites over HTTPS. - No orphaned processes. Every child process sits in a Windows job object, so if the daemon dies its workers die with it and never hold ports hostage.
- Upgrades with a way back.
laman upgradecopies a database’s data to the newer line (withpg_upgradein copy mode for PostgreSQL) and leaves the old folder untouched, and an upgrade that fails before switching restarts on the old version as if nothing happened. - Dev servers without config changes. laman picks a free port from 3100 to 3999, passes it to the framework, and chooses the package manager and Node version from the project’s own files,
packageManager, lock files,.nvmrcandengines.node. - An import that only reads. The Laragon importer refuses to run while Laragon is up, never modifies Laragon’s data, skips databases that already exist, and warns when a project’s
composer.jsonwants a different PHP version.
Gallery
05 items
Video 
01 
02 
03 
04