wol-soft/fqcn-parser

Parse the FQCN from a PHP file containing a class

1.1.0 2023-10-16 10:11 UTC

This package is auto-updated.

Last update: 2024-04-29 14:06:49 UTC


README

Latest Version Minimum PHP Version Build Status MIT License

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');