Turn a fresh Ubuntu machine into a Laravel-ready local environment in a few clicks.
Laravel Installer is a desktop app for Ubuntu that automates the repetitive parts of local Laravel setup: cloning repositories, preparing .env, resolving PHP requirements, installing missing packages, wiring Apache VirtualHosts, updating /etc/hosts, and publishing each app under /var/www/html.
Built for teams that spin up multiple Laravel projects often and want a cleaner flow than copy-pasting shell commands all day.
This is the Rust rewrite of the project — a single native binary with no runtime interpreter, a modern egui desktop interface, and the same battle-tested installation logic as before.
- Native desktop GUI built with
egui/eframe— one self-contained binary, no Python/Tk runtime - Queue multiple Laravel projects in one run
- Auto-detect required PHP version from
composer.json - Auto-install missing PHP extensions and system dependencies
- Generate Apache VirtualHosts and local
.testdomains - Persist project list and app preferences locally (config format is compatible with the previous version)
- Retry only failed projects after a run
- Ship as an installable
amd64 .debpackage - Use
pkexecfor privileged actions instead of asking for sudo inside the app
- Ubuntu
22.04 LTS/24.04 LTS amd64- Apache-based local environments
For each queued project, Laravel Installer can:
- Clone the repository or pull the latest changes
- Create
.envfrom.env.examplewhen needed - Detect the PHP version required by
composer.json - Install missing PHP packages and extensions
- Configure Apache + PHP-FPM
- Run
composer install - Link the project's
publicdirectory into/var/www/html - Create an Apache VirtualHost
- Add a local host entry such as
project-name.test - Apply file permissions for local web serving
sudo apt install ./laravel-installer_2.0.0_amd64.debThen launch it from your applications menu as Laravel Installer, or from the terminal:
laravel-installerRequires the Rust toolchain.
cargo run -p laravel-installerchmod +x scripts/build_deb.sh
./scripts/build_deb.shThe build compiles the release binaries and produces a release-ready .deb under build/ containing:
/usr/bin/laravel-installer/usr/lib/laravel-installer/laravel-installer-helper- desktop entry and icon assets
- the Polkit policy file
policykit-1(forpkexec)- network access for Git, Composer, and apt
- public repositories or preconfigured SSH access for private ones
The GUI itself runs unprivileged.
System-changing operations are delegated to a fixed-operation helper (laravel-installer-helper) through pkexec.
Allowed privileged actions:
install_packageswrite_vhostenable_sitereload_apacheensure_hosts_entrylink_public_dirset_permissionsensure_directory_ownerconfigure_apache_phpensure_service_running
The helper accepts structured JSON payloads only. It does not execute arbitrary shell input.
crates/
├── core/ # All business logic (library + helper binary)
│ ├── src/
│ │ ├── installer.rs # Laravel setup workflow
│ │ ├── system.rs # Command execution and environment inspection
│ │ ├── ops.rs # Privileged operation implementations
│ │ ├── privileged.rs # pkexec client wrapper
│ │ ├── config.rs # Local config persistence
│ │ ├── models.rs # Shared data types
│ │ ├── utils.rs # Input normalisation helpers
│ │ └── constants.rs # Paths, packages, supported releases
│ └── src/bin/
│ └── laravel-installer-helper.rs # pkexec-backed privileged helper
└── gui/ # egui/eframe desktop interface
└── src/{main,app,theme}.rs
packaging/ # desktop entry, icon, Polkit policy
scripts/build_deb.sh # .deb builder
cargo test --workspaceAll installation decision logic (validation, PHP-version detection, package planning, privileged operation command building) is unit-tested without requiring root or a display.
- Apache is the only supported web server target in this release.
- Config is stored under
~/.config/laravel-installer/config.jsonand survives upgrades. - Token-based Git auth flows are not built in yet; private repo access assumes SSH is already configured.