PHP code example of adagio / class-finder
1. Go to this page and download the library: Download adagio/class-finder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
adagio / class-finder example snippets
use Pepper\ClassFinder\ClassFinder;
$classes = (new ClassFinder)->find('
namespace Polite;
class Person
{
function sayHello() {
echo "Hello world!";
}
}
');
print_r($classes);
// Array
// (
// [0] => Polite\Person
// )