PHP code example of siddharthgor / update-file-generator

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

    

siddharthgor / update-file-generator example snippets


'channels' => [
    'update-file-generator' => [
        'driver' => 'single',
        'path' => storage_path('logs/update-file-generator.log'),
        'level' => 'info',
    ],
],

return [
    'archiveable_dirs' => [
        'app/Http/Controllers' => 'Controllers.zip',
        'app/Http/Middleware' => 'Middleware.zip',
        'app/Models' => 'Models.zip',
        'app/Console' => 'Console.zip',
        'app/Imports' => 'Imports.zip',
        'resources/views' => 'views.zip',
        'public/assets' => 'assets.zip',
    ],
    'single_files' => [
        'app/Http/Kernel.php',
        'app/Providers/AppServiceProvider.php',
        'app/app_helpers.php',
        'app/Exceptions/Handler.php',
        'routes/api.php',
        'routes/web.php',
        'public/storage/Work_3.jpg',
        'config/scribe.php',
    ],
    'file_extensions' => ['.php', '.jpg', '.png', '.css', '.js'],
    'exclusions' => ['.env', 'storage/', 'vendor/', 'node_modules/', '.git/', 'bootstrap/cache/', '*.log'],
    'truncate_tables' => ['projects', 'tasks'],
    'database_driver' => 'mysql',
    'versioning' => [
        'new_version' => '2.0.2',
        'prev_version' => '2.0.1',
    ],
    'logging' => [
        'channel' => 'update-file-generator',
        'file' => 'update-file-generator.log',
    ],
];
bash
php artisan vendor:publish --tag=config
bash
php artisan app:make-fresh --output=install.sql
bash
php artisan app:make-fresh --output=storage/app/install.sql

  [2025-09-15 13:11:xx] INFO: Copied and renamed resources/views/setup.blade.php to resources/views/install.blade.php
  [2025-09-15 13:11:xx] INFO: Truncated table: projects
  [2025-09-15 13:11:xx] INFO: Fresh install SQL generated at install.sql