PHP code example of olakunlevpn / laravel-installer

1. Go to this page and download the library: Download olakunlevpn/laravel-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/ */

    

olakunlevpn / laravel-installer example snippets


// Configure your installation steps
'steps' => [
    \Olakunlevpn\Installer\Steps\RequirementsStep::class,
    \Olakunlevpn\Installer\Steps\PermissionsStep::class,
    \Olakunlevpn\Installer\Steps\EnvironmentStep::class,
    \Olakunlevpn\Installer\Steps\InstallingStep::class,
],

'    'php' => '8.2',
    'extensions' => [
        'pdo', 'mbstring', 'openssl', 'curl'
    ],
],

'permissions' => [
    'storage/framework/' => '775',
    'storage/logs/' => '775',
    'bootstrap/cache/' => '775',
],

use Olakunlevpn\Installer\Steps\BaseStep;

class CustomStep extends BaseStep
{
    protected string $id = 'custom';
    protected string $title = 'Custom Configuration';
    protected int $sort = 25;

    public function render()
    {
        return view('custom-step');
    }
}

'steps' => [
    // ... other steps
    \App\Installer\Steps\CustomStep::class,
],
bash
php artisan vendor:publish --tag=laravel-installer-config
bash
php artisan vendor:publish --tag=laravel-installer-views
bash
php artisan vendor:publish --tag=laravel-installer-translations