PHPackages                             wol-soft/fqcn-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wol-soft/fqcn-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wol-soft/fqcn-parser
====================

Parse the FQCN from a PHP file containing a class

1.1.0(2y ago)0179MITPHPPHP &gt;=8.0CI passing

Since Feb 27Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/wol-soft/fqcn-parser)[ Packagist](https://packagist.org/packages/wol-soft/fqcn-parser)[ Docs](https://github.com/wol-soft/fqcn-parser)[ RSS](/packages/wol-soft-fqcn-parser/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![Latest Version](https://camo.githubusercontent.com/800d0fb2e94e0ba92807094744b1e37424693e27bb3f6ca5ec0dcdcbacda3b4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776f6c2d736f66742f6671636e2d7061727365722e737667)](https://packagist.org/packages/wol-soft/fqcn-parser)[![Minimum PHP Version](https://camo.githubusercontent.com/905c670b6e3bc20026bddbc8923df4d38111e526b88f1252ac4ceb6643299d96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e302d3838393242462e737667)](https://php.net/)[![Build Status](https://github.com/wol-soft/fqcn-parser/actions/workflows/main.yml/badge.svg)](https://github.com/wol-soft/fqcn-parser/actions/workflows/main.yml)[![MIT License](https://camo.githubusercontent.com/7d42a7eddc466042085c824049e865f6bb5ec41288829970e76b767fd51e587e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776f6c2d736f66742f6671636e2d7061727365722e737667)](https://github.com/wol-soft/fqcn-parser/blob/master/LICENSE)

fqcn-parser
===========

[](#fqcn-parser)

Parse the FQCN from a PHP file containing a class, an interface, a trait or an enum (requires PHP &gt;= 8.1).

Requirements
------------

[](#requirements)

- Requires at least PHP 8.0

Installation
------------

[](#installation)

The recommended way to install fqcn-parser is through [Composer](http://getcomposer.org):

```
$ composer require wol-soft/fqcn-parser

```

Usage
-----

[](#usage)

```
$fqcn = FQCNParser::getFQCNFromFile(__DIR__ . '/MyClass.php');
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~230 days

Total

2

Last Release

991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54dcceadd1811a5a784b80268bc53133383df11abccb1e82e8fba0e870189d7e?d=identicon)[wol-soft](/maintainers/wol-soft)

---

Top Contributors

[![wol-soft](https://avatars.githubusercontent.com/u/14750468?v=4)](https://github.com/wol-soft "wol-soft (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wol-soft-fqcn-parser/health.svg)

```
[![Health](https://phpackages.com/badges/wol-soft-fqcn-parser/health.svg)](https://phpackages.com/packages/wol-soft-fqcn-parser)
```

###  Alternatives

[whitehat101/apr1-md5

Apache's APR1-MD5 algorithm in pure PHP

349.9M10](/packages/whitehat101-apr1-md5)[buildix/timex

Calendar plugin for filamentphp

1277.6k](/packages/buildix-timex)[dan0sz/resource-hints-magento2

Add `&lt;link rel='preconnect'&gt;`, `&lt;link rel='dns-prefetch'&gt;`, `&lt;link rel='prefetch'&gt;`, or `&lt;link rel='preload'&gt;` resource hints to Magento 2's head.

21100.2k](/packages/dan0sz-resource-hints-magento2)[mihaeu/html-formatter

HTML Formatter pritifies HTML content by applying proper intendation (no tidy, purification, etc.).

1773.3k5](/packages/mihaeu-html-formatter)[raoul2000/yii-simple-workflow

A simple workflow engine for Yii 1

278.2k](/packages/raoul2000-yii-simple-workflow)[sun/country

Sun Country is the package that helps you to get the country name &amp; dialing code by the country ISO 3166-1 Alpha-2 code.

1016.8k](/packages/sun-country)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
