# Reusable PHP Preinstaller

Copy this `installer` folder into the public web root of any PHP project that needs a simple live-server installation wizard.

For Laravel projects, place it at:

```text
public/installer
```

The installer can:

- Check PHP version and required extensions.
- Check writable folders.
- Create or update `.env`.
- Test a MySQL connection.
- Run Laravel Artisan setup commands when cPanel Terminal-style command execution is available.
- Create or update an admin user.
- Store website settings in a generic `settings` table when present.
- Create `storage/app/installed.lock` after a successful install.

After installation, delete the whole `public/installer` folder.

To reuse it in another PHP project, edit the `$installerConfig` array at the top of `index.php`.
