2017 © Pedro Peláez
 

library php-dependency-extractor

Scan directories to extract dependencies

image

tomzx/php-dependency-extractor

Scan directories to extract dependencies

  • Saturday, September 19, 2015
  • by tomzx
  • Repository
  • 2 Watchers
  • 3 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Dependency Extractor

License Latest Stable Version Latest Unstable Version Build Status Code Quality Code Coverage Total Downloads, (*1)

PHP Dependency Extractor is a command line tool that will parse a directory of PHP source code to extract dependencies., (*2)

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)., (*3)

Getting started

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

Locally, (*4)

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

Globally, (*5)

php composer global require tomzx/php-dependency-extractor

See the example section for examples of how to use the tool., (*6)

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., (*7)

The Versions

19/09 2015

dev-master

9999999-dev https://github.com/tomzx/php-dependency-extractor

Scan directories to extract dependencies

  Sources   Download

MIT

The Requires

 

The Development Requires

dependency namespace