Download the PHP package zcwilt/class-finder without Composer
On this page you can find all versions of the php package zcwilt/class-finder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zcwilt/class-finder
More information about zcwilt/class-finder
Files in zcwilt/class-finder
Package class-finder
Short Description Fork of haydenpierce/class-finder with support for traits, interfaces and functions
License MIT
Informations about the package class-finder
ClassFinder
A dead simple utility to identify classes, traits, functions and interfaces in a given namespace.
This package is an improved implementation of an answer on Stack Overflow and provides additional features with less configuration required.
Requirements
- Application is using Composer.
- Classes can be autoloaded with Composer.
- PHP >= 5.3.0
Installing
Installing is done by requiring it with Composer.
No other installation methods are currently supported.
Supported Autoloading Methods
Method | Supported | with ClassFinder::RECURSIVE_MODE |
---|---|---|
PSR-4 | ✔️ | ✔️ |
PSR-0 | ❌️* | ❌️* |
Classmap | ✔️ | ✔️ |
Files | ✔️^ | ❌️** |
\^ Experimental.
* Planned.
** Not planned. Open an issue if you need this feature.
Examples
Standard Mode
Recursive Mode (in v0.3-beta)
Documentation
Changelog
Exceptions:
- Files could not locate PHP
- Files exec not available
- Missing composer.json
Internals
- How Testing Works
- Continuous Integration Notes
Future Work
WARNING: Before 1.0.0, expect that bug fixes will not be backported to older versions. Backwards incompatible changes may be introduced in minor 0.X.Y versions, where X changes.
-
psr0
support - Additional features:
Various ideas:
-
~~
ClassFinder::getClassesInNamespace('TestApp1\Foo', ClassFinder::RECURSIVE_MODE)
. Providing classes multiple namespaces deep.~~ (included v0.3-beta) -
ClassFinder::getClassesImplementingInterface('TestApp1\Foo', 'TestApp1\FooInterface', ClassFinder::RECURSIVE_MODE)
. Filtering classes to only classes that implement a namespace. ClassFinder::debugRenderReport('TestApp1\Foo\Baz')
Guidance for solving "class not found" errors resulting from typos in namespaces, missing directories, etc. Would print an HTML report. Not intended for production use, but debugging.
All versions of class-finder with dependencies
ext-json Version *