adagio / class-finder
Find classes in PHP source code.
1.0.3
2018-07-25 17:39 UTC
Requires
- phpunit/phpunit: >= 5.5
Requires (Dev)
- php: ^7.0
This package is auto-updated.
Last update: 2024-11-29 05:32:28 UTC
README
Installation
The recommended way to install pepper/class-finder
is through Composer.
$ composer require pepper/class-finder
Usage
use Pepper\ClassFinder\ClassFinder; $classes = (new ClassFinder)->find(' <?php namespace Polite; class Person { function sayHello() { echo "Hello world!"; } } '); print_r($classes); // Array // ( // [0] => Polite\Person // )