driade / anabel

在浏览器中显示显示作曲家过时包的桥梁

此软件包的官方仓库似乎已不存在,因此该软件包已被冻结。

0.2.2 2017-05-12 10:02 UTC

This package is not auto-updated.

Last update: 2022-01-08 12:50:30 UTC


README

Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality License Total Downloads

Anabel 提供了一个可视化桥梁,将命令 "composer outdated" 与您的项目使用的软件包状态进行审查。

Alt text

安装

您可以通过 composer 安装此软件包

composer require driade/anabel

使用

您可以在网站管理区域下的路由中显示 Anabel 的结果。只需将以下行添加到您的控制器中,您应该会看到结果。

$anabel = new \Driade\Anabel\Anabel;

$anabel->setConfig(['all' => true, 'composer_dir' => __DIR__, 'sort' => true]);
$anabel->outdated();

echo $anabel->render();

Anabel 将使用 Bootstrap 在 HTML 中显示输出。

配置

您可以通过传递一个数组到 setConfig 来设置软件包的行为。以下是一些可用选项

[
    '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
];

内存问题

此程序在浏览器中运行,并通过 API 调用 Composer,您的 php.ini 中可能有一个较低的内存限制,这将导致 Composer 失败。

更新日志

请参阅 CHANGELOG 了解最近更改的更多信息。

测试

$ composer test

贡献

请参阅 CONTRIBUTING 了解详细信息。

安全性

如果您发现任何安全相关的问题,请通过电子邮件 david@mundosaparte.com 而不是使用问题跟踪器。

信用

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件