driade / anabel
A bridge for display composer outdated packages right in the browser
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=5.3
- composer/composer: ^1.4
- twig/twig: ^1.33
Requires (Dev)
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ^4.8.22
This package is not auto-updated.
Last update: 2022-01-08 12:50:30 UTC
README
Anabel provides a visual bridge to the command "composer outdated", in order to review the status of the packages you're using in your project.
Installation
You can install the package via composer:
composer require driade/anabel
Usage
You may display Anabel results, usually, in a route under the admin area of your site. Just add this lines to your controller and you should see the results.
$anabel = new \Driade\Anabel\Anabel; $anabel->setConfig(['all' => true, 'composer_dir' => __DIR__, 'sort' => true]); $anabel->outdated(); echo $anabel->render();
Anabel will display the output in HTML using Bootstrap.
Configuration
You can pass an array to setConfig in order to control the behaviour of the package. These are the available options:
[ 'all' => false, // Whether to show all the packages or just which should need an update 'composer_dir' => '.', // Directory where the file composer.json is located 'templates_dir' => __DIR__ . '/views', // Directory where the templates for the output are located 'template_header' => 'header.twig.php', // Header of the page, supports Twig 'template_body' => 'body.twig.php', // Body of the page, supports Twig 'template_footer' => 'footer.twig.php', // Footer of the page, supports Twig 'sort' => true, // Whether to sort the packages by the need of an update ];
Memory issues
This program runs in the browser and calls Composer via API, and it's possible that you have a low memory limit in your php.ini that will make Composer fail.
Changelog
Please see CHANGELOG for more information of what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email david@mundosaparte.com instead of using the issue tracker.
Credits
- [David Fernández] (https://github.com/driade) (https://twitter.com/davidfrafael)
License
The MIT License (MIT). Please see License File for more information.