定制 tomzx/php-dependency-extractor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tomzx/php-dependency-extractor

Composer 安装命令:

composer require tomzx/php-dependency-extractor

包简介

Scan directories to extract dependencies

README 文档

README

#PHP Dependency Extractor

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

PHP Dependency Extractor is a command line tool that will parse a directory of PHP source code to extract dependencies.

As it currently stands, PHP Dependency Extractor will extract the list of namespaces used. This can allow you, for instance, to figure out which libraries are used (or not).

Getting started

  1. Install php-dependency-extractor through composer, either globally or locally:

Locally

php composer require --dev tomzx/php-dependency-extractor

Globally

php composer global require tomzx/php-dependency-extractor

See the example section for examples of how to use the tool.

Example

php bin/php-dependency-extractor extract --why target-path

File_Iterator_Facade
PHPDependencyExtractor\Console\Command\ExtractCommand
PHPDependencyExtractor\Extractor
PHPDependencyExtractor\Registry\Registry
PHPDependencyExtractor\Visitor\TrackedNameResolver
PhpParser\Lexer\Emulative
PhpParser\Node
PhpParser\NodeTraverser
PhpParser\NodeVisitor\NameResolver
PhpParser\Node\Stmt\UseUse
PhpParser\Parser
Symfony\Component\Console\Application
Symfony\Component\Console\Command\Command
Symfony\Component\Console\Helper\ProgressBar
Symfony\Component\Console\Input\InputArgument
Symfony\Component\Console\Input\InputInterface
Symfony\Component\Console\Input\InputOption
Symfony\Component\Console\Output\OutputInterface

License

The code is licensed under the MIT license. See LICENSE.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-11