installer
is a project installing package of Laravel
.
Via Composer
composer require sudippalash/installer
You can publish the config file with:
php artisan vendor:publish --provider="Sudip\Installer\Providers\AppServiceProvider" --tag=config
This is the contents of the published config file config/installer.php
:
return [
/*
|--------------------------------------------------------------------------
| php
|--------------------------------------------------------------------------
|
| PHP required a version for your system and required extensions that user needs to enable or install on the server.
|
*/
'php' => [
'require_version' => '7.3.0',
'require_extension' => ['bcmath', 'ctype', 'fileinfo', 'gd', 'json', 'mbstring', 'openssl', 'PDO', 'tokenizer', 'xml'],
],
/*
|--------------------------------------------------------------------------
| Direcotries Permissions
|--------------------------------------------------------------------------
|
| Users need to assign minimum permission for these project folders.
|
*/
'direcotries_permissions' => [
'bootstrap/cache' => '775',
'storage/app' => '775',
'storage/framework' => '775',
'storage/logs' => '775',
],
/*
|--------------------------------------------------------------------------
| env
|--------------------------------------------------------------------------
|
| Set your default .env value. The form will show those data then the user can change it.
|
*/
'env' => [
'APP_NAME' => 'Laravel',
'APP_URL' => url('/'),
'LOG_CHANNEL' => 'daily',
'FILESYSTEM_DRIVER' => 'public',
'DB_HOST' => '127.0.0.1',
'DB_PORT' => 3306,
'DB_DATABASE' => 'laravel',
'DB_USERNAME' => 'root',
'DB_PASSWORD' => '',
'MAIL_MAILER' => 'smtp',
'MAIL_HOST' => 'smtp.mailgun.org',
'MAIL_PORT' => 587,
'MAIL_USERNAME' => null,
'MAIL_PASSWORD' => null,
'MAIL_ENCRYPTION' => 'tls',
'MAIL_FROM_ADDRESS' => null,
'MAIL_FROM_NAME' => 'Laravel',
],
];
Type on your browser URL address bar:
{your_project_url}/install
The MIT License (MIT). Please see License File for more information.