Help resolve psr4 based namespaces to directories and thus related language constructs (classes, interfaces & traits).
The best way to install this package is via composer.
$ composer require benrowe/fqcn
<?php
$composer = require './vendor/autoload.php';
$resolver = \Benrowe\Fqcn\Resolver('Benrowe\Fqcn', $composer);
// get an array of available directories that map to this namespace
$dirs = $resolver->findDirectories();
With the factory
<?php
$composer = require './vendor/autoload.php';
$factory = new \Benrowe\Fqcn\Factory($composer);
// get an array of available directories that map to this namespace
$dirs = $factory->make('Benrowe\Fqcn')->findDirectories();
$constructs = $factory->make('Benrowe\Fqcn')->findConstructs();
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email ben.rowe.83@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.