PHP code example of devzkhalil / laravel-one-click-installer
1. Go to this page and download the library: Download devzkhalil/laravel-one-click-installer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devzkhalil / laravel-one-click-installer example snippets
/**
* INSTALLER CONFIGURATION
* --------------------------------------
* Configure your application installer
* before deploying the installer.
*/
'php' => [
/**
* MINIMUM PHP VERSION
* --------------------------------------
* Define the minimum PHP version
'mbstring',
'openssl',
'dom',
'libxml',
'pdo',
'phar',
'xml',
'xmlwriter',
'curl',
'gd',
'pcntl',
'posix',
'fileinfo',
'ftp',
],
],
/**
* INSTALLATION STEPS
* --------------------------------------
* Define all steps for the installer.
* Comment out any step you don't need.
* Do not change any word; altering the
* steps can break the system.
*/
'steps' => [
// 'license_validation',
'check_d you prefer using an SQL file,
* define its name here.
*
* Place the SQL file inside "database/sql/app.sql".
*
* example: 'sql' => 'app.sql'
*/
'sql' => null,
/**
* SMTP ENVIRONMENT VARIABLES
* --------------------------------------
* If you need to set up additional
* environment variables during setup,
* define them here.
*/
'smtp' => [
[
'key' => 'MAIL_MAILER',
'title' => 'SMTP Route'
],
[
'key' => 'MAIL_HOST',
'title' => 'SMTP Mail Host'
],
[
'key' => 'MAIL_PORT',
'title' => 'SMTP Mail Port'
],
[
'key' => 'MAIL_USERNAME',
'title' => 'SMTP Mail Username'
],
[
'key' => 'MAIL_PASSWORD',
'title' => 'SMTP Mail Password'
],
[
'key' => 'MAIL_ENCRYPTION',
'title' => 'SMTP Encryption'
],
[
'key' => 'MAIL_FROM_ADDRESS',
'title' => 'SMTP From Address'
],
[
'key' => 'MAIL_FROM_NAME',
'title' => 'SMTP From Name'
],
],
/**
* COMPLETION REDIRECT
* --------------------------------------
* Define the URL to redirect to after
* completing the installation.
*
* example: '/home'
*/
'redirect' => '/',
bash
php artisan vendor:publish --tag=installer-config
bash
php artisan vendor:publish --tag=installer-assets
bash
php artisan config:cache
bash
php artisan vendor:publish --tag=installer-views