Laravel ReComposer decomposes and lists all the installed packages with their dependencies along with the Laravel & the Server environment details your app is running in.
Please make sure du is installed on linux, or unix, mac.
I regret to inform windows currently is not supported.
Any type of virtualization docker, Virtual Machine and anything similar to it.
To get started, install ReComposer using the Composer package manager:
composer require solumdesignum/recomposer
Next, publish ReComposer resources using the vendor:publish command:
php artisan vendor:publish --provider="SolumDeSignum\ReComposer\ReComposerServiceProvider"
This command will publish a config to your config directory, which will be created if it does not exist.
The configuration file contains configurations.
<?php
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',
]
]
]
];
Add a route in your web routes file:
Route::get('recomposer','\SolumDeSignum\ReComposer\Controllers\ReComposerController@index');
Go to http://yourapp/recomposer or the route you configured above in the routes file.
Thank you for considering contributing to the Laravel ReComposer. You can read the contribution guidelines here
If you discover any security-related issues, please email to Solum DeSignum.
Solum DeSignum is a web design agency based in Latvia, Riga.
Laravel ReComposer is open-sourced software licensed under the MIT license
This package concept is based on a package decomposer (abandon).