PHP code example of sdtech / project-installer

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

    

sdtech / project-installer example snippets

bash
    php artisan vendor:publish --tag=projectinstaller
bash
public function handle(Request $request, Closure $next)
    {
        if (file_exists(storage_path('installed'))) {
            return $next($request);
        }

        return redirect(url('install'));
    }