karmabunny/nstrack
最新稳定版本:v1.1.0
Composer 安装命令:
composer require karmabunny/nstrack
包简介
Track namespace use in PHP
关键字:
README 文档
README
PHP 5.3 introduced namespaces, which are great for managing large codebases and integrating disparate projects. However, they also introduce significant complexity.
NStrack allows you to search an entire codebase, find all class/interface references, and make sure they're referencing classes that actually exist with appropriate use statements.
It's particularly useful if you have legacy code which you want to move into namespaces, and it's also useful for managing new code to minimise runtime errors.
Usage
Call nstrack.php from within your source code directory.
e.g.
php ~/git/nstrack/nstrack.php
There are also some flags which do additional processing:
--writeWrite mode. Alter files rather than just listing changes. A little bit buggy sometimes. Don't use this if you're not using source control!--verboseOutput extra information--debugOutput debugging information--targetedRefines the output and side-effects (e.g.--write) to a certain directory or file.--needsDisplay only missing use statements.--missingDisplay only missing classes.--coloursEnable coloured output.--gitOnly operate on changed paths (according togit status). Useful with-wwhen making changes to projects, especially namespace renames.
统计信息
- 总下载量: 491
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2021-10-21