A beautiful, automated installer that makes Laravel project setup as simple as clone-and-click. No more manual configuration!
Ever cloned a Laravel project and spent 30+ minutes on setup? This installer automates everything:
- 🔍 System Requirements Check - PHP, extensions, Composer, Node.js
- 🗃️ Database Setup - Connection testing, database creation
- ⚙️ Environment Configuration - Automatic .env file setup
- 📦 Dependency Installation - Composer & NPM packages
- 🔑 Security Setup - App key generation
- 🗃️ Database Migrations - Schema setup
- 📊 Real-time Progress - Live installation tracking
- 🎨 Beautiful UI - Modern TailwindCSS interface
- 📁 Include
install-app.phpin your Laravel project's public directory - 🔧 Update your
index.phpwith the installation check - 👥 Users can now clone and install with one click
# Clone any Laravel project with this installer
git clone https://github.com/alaminwebdev/laravel-auto-installer.git
cd project-name
# Access the installer via browser
# Visit: http://localhost/your-project/public/install-app.php📁 Installation Guide
- Step 1: Place install-app.php in your public/ directory
- Step 2: Update your public/index.php:
php
<?php
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
// Check if app is installed via .env variable
$envPath = __DIR__ . '/../.env';
$appInstalled = false;
if (file_exists($envPath)) {
$envContent = file($envPath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach ($envContent as $line) {
if (strpos(trim($line), 'APP_INSTALLED=') === 0) {
$value = trim(explode('=', $line, 2)[1] ?? '');
$appInstalled = strtolower($value) === 'true';
break;
}
}
}
if (!$appInstalled) {
header('Location: install-app.php');
exit;
}
// Continue with normal Laravel bootstrap...
require __DIR__ . '/../vendor/autoload.php';
$app = require_once __DIR__ . '/../bootstrap/app.php';
$app->handleRequest(Request::capture());- Simply include both files in your project repository. Users will be automatically redirected to the installer on first access.
- Automated System Checks
- PHP version validation
- Composer availability
- Node.js & npm detection
- Directory permissions
- Smart Database Setup
- Connection testing
- Automatic database creation
- Environment file configuration
- Migration execution
- Composer package installation
- NPM package installation (if package.json exists)
- Frontend asset building
- PHP 8.1 or higher
- Composer (auto-detected)
- Node.js & npm (optional, for frontend assets)
- MySQL/PostgreSQL/SQLite database
- Laravel 9+ compatible



