wol-soft / fqcn-parser
Parse the FQCN from a PHP file containing a class
Installs: 119
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/wol-soft/fqcn-parser
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');