ecoapm/libyear
Composer 安装命令:
composer require ecoapm/libyear
包简介
A simple measure of software dependency freshness
README 文档
README
A simple measure of dependency freshness
Calculates the total number of years behind their respective newest versions for all dependencies listed in composer.json.
Requirements
- PHP v8.1 or later
- Composer v2
Ongoing commercial support for legacy versions of PHP is available for Corporate, Premier, and Title Sponsors.
Installation
Recommended: Composer
Run composer global require ecoapm/libyear and make sure your global composer directory is in your $PATH.
Alternatively, composer require --dev ecoapm/libyear will add libyear as a local dev dependency for your current directory's app.
Alternative: PHP Archive (PHAR) File
Download libyear.phar from the latest release, and put it in the current directory, or somewhere in your $PATH to be able to reference it from anywhere.
Windows Users
Note that PHP for Windows does not include CA certificates, so you'll need to install them if you haven't done so already:
- Download http://curl.haxx.se/ca/cacert.pem to somewhere permanent (PHP's
extrasdirectory is a great place) - Add
curl.cainfo = "[full path to]\cacert.pem"to yourphp.inifile
Usage
vendor/bin/libyear <path> [-q|--quiet] [-v|--verbose] [-u|--update]
(or php path/to/libyear.phar <path> [-q|--quiet] [-v|--verbose] [-u|--update] for the PHAR version)
Arguments:
path: required, directory containingcomposer.jsonandcomposer.lockfiles
Options:
-h,--help: show help text and exit without checking dependencies-l,--limit: fails if total libyears behind is greater than this value-a,--limit-any: fails if any dependency is more libyears behind than this value-q,--quiet: quiet mode will only output libraries which are not up-to-date (that is, where "Libyears Behind" > 0)-u,--update: update mode will write the latest version info to yourcomposer.jsonfile (note that you'll still need to runcomposer updateto actually update your local dependencies)-v,--verbose: verbose mode will output processing details like when a library isn't found in a repository
Contributing
Please be sure to read and follow ecoAPM's Contribution Guidelines when submitting issues or pull requests.
When testing new features and bug fixes, you can run the script via ./libyear { path } [-q] before building the phar file.
To build the phar file for final manual testing, run php -dphar.readonly=0 build.php. You may wish to run composer install --no-dev first to speed up the build process by removing dev dependencies, but will need to reinstall them via composer install (specifically, phpunit and mockery for unit testing).
ecoapm/libyear 适用场景与选型建议
ecoapm/libyear 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 305.93k 次下载、GitHub Stars 达 28, 最近一次更新时间为 2021 年 09 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ecoapm/libyear 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ecoapm/libyear 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 305.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-14