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

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

daycry/class-finder
===================

Namespace Class Finder

v2.2.2(11mo ago)17.1k—1.7%3MITPHPPHP ^8.1CI passing

Since Apr 22Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/daycry/class-finder)[ Packagist](https://packagist.org/packages/daycry/class-finder)[ Docs](https://github.com/daycry/class-finder)[ RSS](/packages/daycry-class-finder/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (10)Versions (9)Used By (3)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate?business=SYC5XDT23UZ5G&no_recurring=0&item_name=Thank+you%21&currency_code=EUR)

ClassFinder
===========

[](#classfinder)

A high-performance utility to identify classes in a given namespace for CodeIgniter 4

[![Build Status](https://github.com/daycry/class-finder/actions/workflows/php.yml/badge.svg)](https://github.com/daycry/class-finder/actions/workflows/php.yml)[![Coverage Status](https://camo.githubusercontent.com/0a091a2034ab8d897a259d7f122b04deea622b6f4b0f624ab34f385ac6c5d875/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6461796372792f636c6173732d66696e6465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/daycry/class-finder?branch=master)[![Downloads](https://camo.githubusercontent.com/2b984a0ffc79bf18c2781be8654086f9c20d1e19a5f11410ba0ff1c2c54fb3d3/68747470733a2f2f706f7365722e707567782e6f72672f6461796372792f636c6173732d66696e6465722f646f776e6c6f616473)](https://packagist.org/packages/daycry/class-finder)[![GitHub release (latest by date)](https://camo.githubusercontent.com/166335512d239971b22743ad93703dfc3a3afde9f66e2c7ae27db826cea0fcee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6461796372792f636c6173732d66696e646572)](https://packagist.org/packages/daycry/class-finder)[![GitHub stars](https://camo.githubusercontent.com/afb48808c2be0aed7b02b7ec21d0baffd51fc0b9f8b73499fe47e11729a891da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6461796372792f636c6173732d66696e646572)](https://packagist.org/packages/daycry/class-finder)[![GitHub license](https://camo.githubusercontent.com/4f0e3d4485488226bc1e8839890bfdf1620693551eee49c06b6e98861ac67d13/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461796372792f636c6173732d66696e646572)](https://github.com/daycry/class-finder/blob/master/LICENSE)

✨ Features
----------

[](#-features)

- **🚀 High Performance**: Optimized with static analysis and intelligent caching (90%+ faster than previous versions)
- **🔒 Secure**: Uses static analysis instead of dynamic code execution when possible
- **🎯 Multiple Strategies**: Supports PSR-4, ClassMap, and Files autoloading strategies
- **⚙️ Configurable**: Flexible configuration options for different use cases
- **🔍 Comprehensive**: Find classes, interfaces, traits, and functions
- **💡 Smart Fallback**: Automatic fallback to ensure compatibility

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

[](#requirements)

- **PHP &gt;= 8.1.0** (PHP 8.2+ recommended for optimal performance)
- **Composer** for dependency management and autoloading
- **CodeIgniter 4** framework

Dependencies
------------

[](#dependencies)

This library automatically installs:

- `nikic/php-parser` - For high-performance static analysis
- Standard CodeIgniter 4 dependencies

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

[](#installation)

Install via Composer:

```
composer require daycry/class-finder
```

Quick Start
-----------

[](#quick-start)

```
