mcmatters/fqn-checker
最新稳定版本:v3.0.3
Composer 安装命令:
composer require mcmatters/fqn-checker
包简介
无描述信息
README 文档
README
Checks your php-code for the presence of un-imported functions and gives you information about where they are located.
Installation
composer require mcmatters/fqn-checker
Usage
<?php declare(strict_types=1); use McMatters\FqnChecker\FqnChecker; require 'vendor/autoload.php'; $checker = new FqnChecker(file_get_contents(__DIR__.'/Wrong.php')); print_r($checker->getNotImported()); print_r($checker->getImported());
Listing of Wrong.php
<?php declare(strict_types=1); namespace Acme; use function ucfirst; class Wrong { public function testArray() { return array_filter([], null); } public function testString() { return ucfirst('hello'); } }
Result
[ 'constants' => [ 'Acme' => [ 'null' => [ 13, ], ], ], 'functions' => [ 'Acme' => [ 'array_filter' => [ 13, ], ], ], ] [ 'constants' => [], 'functions' = [ 'Acme' => [ 'ucfirst' => true, ], ], ] 统计信息
- 总下载量: 6.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04