codemenorg/installer

Codemen - Laravel Web Installer

1.0.2 2020-06-28 07:05 UTC

This package is auto-updated.

Last update: 2024-09-28 16:25:59 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 installer 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 application information.
  • Ability to set database information.
  • Ability to set mail information.
  • Ability to set others .env information.
  • Migrate The Database.
  • Seed The Tables.

Requirements

Installation

  1. From your projects root folder in terminal run:
    composer require codemenorg/installer
  1. Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
    php artisan vendor:publish --tag=CodemenInstaller

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 finished APP_INSTALLED environment variable be placed into the .env file with value true. If this APP_INSTALLED is true then the route /install will abort to the 404 page or you can redirect to your specific route by editing installer. config file.
  • To redirect to install page until the installation is done, you need to add the following middleware in the middlewareGroups => web section in app/Http/Kernel.php:

\Codemen\Installer\Middleware\RedirectIfNotInstalled::class,

This middleware configuration is optional and can be skipped.

Contributing

License

Codemen - Laravel Web Installer is licensed under the MIT license. Enjoy!