Skip to content

About

LAMP / Laravel project installer app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Laravel Installer

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.

Highlights

  • 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 .test domains
  • 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 .deb package
  • Use pkexec for privileged actions instead of asking for sudo inside the app

Supported Platform

  • Ubuntu 22.04 LTS / 24.04 LTS
  • amd64
  • Apache-based local environments

How It Works

For each queued project, Laravel Installer can:

  1. Clone the repository or pull the latest changes
  2. Create .env from .env.example when needed
  3. Detect the PHP version required by composer.json
  4. Install missing PHP packages and extensions
  5. Configure Apache + PHP-FPM
  6. Run composer install
  7. Link the project's public directory into /var/www/html
  8. Create an Apache VirtualHost
  9. Add a local host entry such as project-name.test
  10. Apply file permissions for local web serving

Installation

Option 1: Install the packaged app

sudo apt install ./laravel-installer_2.0.0_amd64.deb

Then launch it from your applications menu as Laravel Installer, or from the terminal:

laravel-installer

Option 2: Run from source

Requires the Rust toolchain.

cargo run -p laravel-installer

Build The Debian Package

chmod +x scripts/build_deb.sh
./scripts/build_deb.sh

The 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

Runtime Requirements

  • policykit-1 (for pkexec)
  • network access for Git, Composer, and apt
  • public repositories or preconfigured SSH access for private ones

Security Model

The GUI itself runs unprivileged.

System-changing operations are delegated to a fixed-operation helper (laravel-installer-helper) through pkexec.

Allowed privileged actions:

  • install_packages
  • write_vhost
  • enable_site
  • reload_apache
  • ensure_hosts_entry
  • link_public_dir
  • set_permissions
  • ensure_directory_owner
  • configure_apache_php
  • ensure_service_running

The helper accepts structured JSON payloads only. It does not execute arbitrary shell input.

Project Layout

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

Tests

cargo test --workspace

All installation decision logic (validation, PHP-version detection, package planning, privileged operation command building) is unit-tested without requiring root or a display.

Notes

  • Apache is the only supported web server target in this release.
  • Config is stored under ~/.config/laravel-installer/config.json and survives upgrades.
  • Token-based Git auth flows are not built in yet; private repo access assumes SSH is already configured.

License

MIT

About

LAMP / Laravel project installer app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages