PHPackages                             stagem/class-finder - 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. stagem/class-finder

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

stagem/class-finder
===================

Extremely simple and fast Class Finder

1.0(6y ago)29.2k↓83.3%MITPHPPHP &gt;=7.0

Since Jun 15Pushed 5y ago3 watchersCompare

[ Source](https://github.com/stagemteam/class-finder)[ Packagist](https://packagist.org/packages/stagem/class-finder)[ RSS](/packages/stagem-class-finder/feed)WikiDiscussions master Synced 1w ago

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

Class Finder
============

[](#class-finder)

Extremely simple and fast Class Finder.

The package allows you to get Fully Qualified Class Name (FQCN) from file or directory path. There are no dependencies on the `Composer Autoloader`, `Reflection`, `RegEx`, or `get_declared_classes()`.

Many similar packages already implement this functionality but all of them suffer from overengineering or performance issues. When your project becomes big and it has tens of thousands of classes with the huge numbers of config you need a simple and fast solution to operate all of it.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install this library in your projects:

```
$ composer require stagem/class-finder
```

Usage
-----

[](#usage)

### Find in file path

[](#find-in-file-path)

```
