robertbasic/bugreport
Composer 安装命令:
composer require robertbasic/bugreport
包简介
Get a bug report on a project's dependencies.
README 文档
README
Get a bug report on a project's dependencies.
Looks at a GitHub repository and reports on:
- number of open issues,
- average age of open issues,
- age of oldest open issue,
- age of newest open issue,
- number of open pull requests,
- average age of open pull requests.
Current version is: 0.1.0
This is a PHP 7+ project.
installation
Install it with composer as a --dev dependency:
composer require --dev robertbasic/bugreport:0.1.0
usage
Running:
./bin/bugreport
will search for a composer.lock file in the current directory and go through
all the dependencies of the project.
You can also pass a path to the composer.lock file you want to check:
./bin/bugreport /path/to/composer.lock
To check for a single dependency, provide a user/repository combination:
./bin/bugreport user/repository
Passing in --html as a command line option, will tell bugreport to create
an HTML report, instead of a text one.
configuration
By default bugreport will generate a bugreport.txt file in the current
working directory with the entire report. You can configure that by:
- copy
bugreport.json.disttobugreport.json - add
bugreport.jsonto.gitignore - edit
bugreport.json, change the value ofbugreport_filenameto the path and filename where you want the report to be saved.
github api rate limit
If you run bugreport too much, or against a project with lots of dependencies,
the github api rate limit might kick in. In that case, you need to create a
GitHub personal access token.
The ONLY scope bugreport requires is public_repo, nothing else.
Once you have the token do the following:
- copy
bugreport.json.disttobugreport.json - add
bugreport.jsonto.gitignore - edit
bugreport.json, change the value ofgithub_personal_access_tokento your token.
html report
The HTML report looks something like this:
contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
changelog
Please read the changelog.
todo
- interactive configuration
- write report as html
- phar for distribution
- is the project deprecated?
- did the project move?
- number of contributors (regular vs. occasional)
- age of last release
- activity in the last 30 days (opened vs. closed issues/PRs)
- get project name from composer.json
- level of dependency to check (1st, 2nd, other)
authors
- Robert Basic - robertbasic
See also the list of contributors who participated in this project.
license
This project is licensed under the MIT License - see the LICENSE.md file for details.
robertbasic/bugreport 适用场景与选型建议
robertbasic/bugreport 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 05 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 robertbasic/bugreport 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 robertbasic/bugreport 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-21
