Download the PHP package oliver-hader/composer-class-finder without Composer
On this page you can find all versions of the php package oliver-hader/composer-class-finder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oliver-hader/composer-class-finder
More information about oliver-hader/composer-class-finder
Files in oliver-hader/composer-class-finder
Package composer-class-finder
Short Description Resolves class files based on Composer autoload information, without actually applying autoloader in PHP process.
License MIT
Informations about the package composer-class-finder
Composer Class Finder
State-agnostic class files finder, based on Composer autoload information, without actually applying autoloader in PHP process. The scope of this package is to retrieve the file location for classes of particular Composer-based projects.
This way classes can be resolved standalone without actually loading them into memory, since class loading is not invoked at all.
Plain Composer
TYPO3 specific
resolving composer-mode of a project
This basically resolves information concerning TYPO3 "composer-mode".
$directory
set to location of rootcomposer.json
returnstrue
(given there actually is a valid TYPO3 composer-based installation)$directory
set to location to web-root (containingindex.php
andtypo3conf/autoload/
) returnsfalse
applying corresponding autoload information
Same rules as in previous composer-mode
section apply for $directory
.
The library won't do much directory traversing - exceptions are thrown when
providing invalid directories. Thus, it's your job to provide correct values.
Information is fetched from either composer-based data (just vendor/
) or in
non-composer-mode from <typo3_src>/vendor/
and <web-root>/typo3conf/autoload/
.
Thanks to Composer Folks
Basically this package is just a wrapper for existing Composer class-loader, the corresponding code has been duplicated from https://github.com/composer/composer.
Thanks a bunch for your great work! :+1: