wol-soft / fqcn-parser
Parse the FQCN from a PHP file containing a class
1.1.0
2023-10-16 10:11 UTC
Requires
- php: >=8.0
Requires (Dev)
- phpunit/phpunit: ^8.5 || ^9.4
README
fqcn-parser
Parse the FQCN from a PHP file containing a class, an interface, a trait or an enum (requires PHP >= 8.1).
Requirements
- Requires at least PHP 8.0
Installation
The recommended way to install fqcn-parser is through Composer:
$ composer require wol-soft/fqcn-parser
Usage
$fqcn = FQCNParser::getFQCNFromFile(__DIR__ . '/MyClass.php');