承接 karmabunny/nstrack 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  • --write Write mode. Alter files rather than just listing changes. A little bit buggy sometimes. Don't use this if you're not using source control!
  • --verbose Output extra information
  • --debug Output debugging information
  • --targeted Refines the output and side-effects (e.g. --write) to a certain directory or file.
  • --needs Display only missing use statements.
  • --missing Display only missing classes.
  • --colours Enable coloured output.
  • --git Only operate on changed paths (according to git status). Useful with -w when making changes to projects, especially namespace renames.

统计信息

  • 总下载量: 491
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 9
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固