PHP code example of solumdesignum / recomposer

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

    

solumdesignum / recomposer example snippets




declare(strict_types=1);

$excludePrefix = '--exclude=';

return [
    'basePath' => base_path(),
    'binary' => [
        'format' => 'kilobytes',
        'search' => 'MiB',
        'replace' => 'mb',
    ],
    'view' => 'solumdesignum/recomposer::index',
    'cache' => [
        'feature' => false,
        'hours' => 1,
    ],
    'icon' => [
        'check' => '<i class="fas fa-check"></i>',
        'uncheck' => '<i class="fas fa-times"></i>',
    ],
    'exclude' => [
        'folder' => [
            'blacklist' => [
                //                $excludePrefix . base_path('bootstrap'),
                //                $excludePrefix . base_path('packages'),
                //                $excludePrefix . base_path('node_modules'),
                //                $excludePrefix . base_path('vendor'),
                //                $excludePrefix . base_path('storage/debugbar'),
                //                $excludePrefix . base_path('storage/framework'),
                //                $excludePrefix . base_path('storage/logs'),
                //                $excludePrefix . base_path('storage/medialibrary'),
            ],
        ],
        'packages' => [
            'enabled' => true,
            'blacklist' => [
                'php',
                'roave/security-advisories',
            ]
        ]
    ]
];

Route::get('recomposer','\SolumDeSignum\ReComposer\Controllers\ReComposerController@index');
shell
php artisan vendor:publish --provider="SolumDeSignum\ReComposer\ReComposerServiceProvider"