PHP code example of rarex / laravel-static-site-generator

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

    

rarex / laravel-static-site-generator example snippets




$staticSiteFile = __DIR__ . '/../storage/static-site/static.php';
if (file_exists($staticSiteFile)) {
    

php artisan static-site -v

php artisan static-site:publish -v

php artisan static-site

php artisan static-site:make

php artisan static-site:clean

php artisan static-site:publish