Download the PHP package funkyproject/reflection-file without Composer
On this page you can find all versions of the php package funkyproject/reflection-file. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package reflection-file
ReflectionFile
Use Attraktiv\ReflectionFile
to retrieve a lot of information about class into the file.
Installation
You can install this lib using composer
composer require funkyproject/reflection-file
or add the package to your composer.json
file directly
Usage
use Funkyproject\ReflectionFIle;
$reflectionFile = new ReflectionFile($pathFileValid);
$reflectionFile->getName() // Namespace/ClassName
$instance = $reflectionFile->newInstance();
More information about methods are available on http://www.php.net/manual/en/class.reflectionclass.php
If file not found, ReflectionFile
will throw a FileNotFoundException
If file is not a class, ReflectionFile will throw a ReflectionException
Tests
You can run the unit tests with the following command:
$ cd path/to/ReflectionFile/
$ composer.phar install
$ phpunit
All versions of reflection-file with dependencies
PHP Build Version
Package Version
No informations.
The package funkyproject/reflection-file contains the following files
Loading the files please wait ....