2017 © Pedro Peláez
 

library reflection-file

image

funkyproject/reflection-file

  • Wednesday, April 2, 2014
  • by funkyproject
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,441 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5237 % Grown

The README.md

ReflectionFile

Use Attraktiv\ReflectionFile to retrieve a lot of information about class into the file., (*1)

Build Status Scrutinizer Code Quality Code Coverage, (*2)

Installation

You can install this lib using composer, (*3)

composer require funkyproject/reflection-file

or add the package to your composer.json file directly, (*4)

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, (*5)

If file not found, ReflectionFile will throw a FileNotFoundException, (*6)

If file is not a class, ReflectionFile will throw a ReflectionException, (*7)

Tests

You can run the unit tests with the following command:, (*8)

 $ cd path/to/ReflectionFile/
 $ composer.phar install
 $ phpunit

The Versions

02/04 2014

dev-master

9999999-dev

  Sources   Download

The Development Requires

02/04 2014

v0.1

0.1.0.0

  Sources   Download

The Development Requires