jawitold/fqcn-extractor
最新稳定版本:1.0.3
Composer 安装命令:
composer require jawitold/fqcn-extractor
包简介
A lightweight PHP utility to extract the Fully Qualified Class Name (FQCN) from a PHP source file using the built-in tokenizer.
README 文档
README
A lightweight PHP utility to extract the Fully Qualified Class Name (FQCN) from a PHP source file using the built-in tokenizer.
Installation
composer require jawitold/fqcn-extractor
Usage
use JaWitold\FqcnExtractor\FqcnExtractor; $extractor = new FqcnExtractor(); $fqcn = $extractor->extract('path/to/file.php'); // Returns something like: My\Namespace\MyClass echo $fqcn;
Requirements
- PHP 8.1+
- PHP
tokenizerextension (built-in by default)
License
This project is licensed under the MIT License - see the LICENCE.md file for details.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-31