sbit/web-installer

Laravel Web Installer For All Project

dev-main 2022-10-13 22:31 UTC

This package is auto-updated.

Last update: 2024-06-14 02:08:08 UTC


README

About

Do you want your clients to be able to install a Laravel project just like they do with WordPress or any other CMS? This Laravel package allows users who don't use Composer, SSH etc to install your application just by following the setup wizard. The current features are :

  • Check For Server Requirements.
  • Check For Folders Permissions.
  • Ability to set database information.
    • .env text editor
    • .env form wizard
  • Migrate The Database.
  • Seed The Tables.

Requirements

Installation

  1. From your projects root folder in terminal run:
composer require sbit/web-installer
  1. Register the package

Register the package with laravel in config/app.php under providers with the following:

'providers' => [
	Sbit\WebInstaller\Providers\WebInstallerServiceProvider::class,
];
  1. Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
php artisan vendor:publish --provider="Sbit\WebInstaller\Providers\WebInstallerServiceProvider"

Routes

  • /install

Usage

  • Install Routes Notes
    • In order to install your application, go to the /install route and follow the instructions.
    • Once the installation has ran the empty file installed will be placed into the /storage directory. If this file is present the route /install will redirect to homepage.

Folders

Folder Folder Information
public/installerfiles This folder contains all the asset files, this file is responsible for the styling of your installer, you can overide the default stylesheet style.css and add your own.
resources/views/web/installer This folder contains the HTML code for your installer, it is 100% customizable, give it a look and see how nice/clean it is.