1. Go to this page and download the library: Download guuspi17/class-manifest 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/ */
guuspi17 / class-manifest example snippets
$classManifest = new \Guuspi17\ClassManifest\ClassManifest();
$classManifest->setDirForSearch(['/app/phpFiles']); // указываем директории, в которых будет происходить поиск *.php файлов.
$classManifest->setCache($fileCache); // Опционально, где $fileCache - объект кеша, реализующий Psr/CacheInterface.
$classManifest->init();
// Вывести классы, которые реализуют интерфейс NotificationInterface::class.
var_dump($classManifest->getInterfaceImplementors(NotificationInterface::class));
// Вывести классы, которые реализуют интерфейс NotificationInterface::class, исключая абстрактные классы.
var_dump($classManifest->getInterfaceImplementors(
NotificationInterface::class,
[\Guuspi17\ClassManifest\Filters\WithoutAbstractClassFilter::getCode() => true]
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.