Skip to content

SHyx0rmZ/project-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-scanner

Latest Stable Version Total Downloads Latest Unstable Version License

Scan directories (for example vendor/, src/) for stuff.

How to use

Use ProjectScanner to find classes in directories.

public function doStuff()
{
  $projectScanner = new ProjectScanner();

  foreach ($projectScanner->findInDirectory('Entity') as $scanResult) {
    echo $scanResult->getReference() . PHP_EOL;
    echo $scanResult->getFileInfo()->getRelativePath() . PHP_EOL;
  }
}

Output:

You\YourLibrary\Entity\Foo
src/You/YourLibrary/Entity/Foo.php
Me\MyLibrary\Entity\Foo\Bar
vendor/me/my-library/src/Entity/Foo/Bar.php

About

Scan directories (for example vendor/, src/) for stuff

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages