2017 © Pedro Peláez
 

library filereflection

Complements the PHP reflection API with the missing ReflectionFile class

image

mindplay/filereflection

Complements the PHP reflection API with the missing ReflectionFile class

  • Wednesday, June 17, 2015
  • by mindplay.dk
  • Repository
  • 1 Watchers
  • 2 Stars
  • 502 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

mindplay/filereflection

⚠️ DEPRECATED ⚠️

Consider using Roave/BetterReflection instead., (*1)

https://github.com/mindplay-dk/filereflection, (*2)

This library complements the PHP reflection API with the missing ReflectionFile class., (*3)

Build Status, (*4)

A few other libraries were available to do this already, but this one implements an important feature missing from other implementations I could find: resolution of local type-names according to the name resolution rules., (*5)

The interface is very simple:, (*6)

ReflectionFile {

    public __construct( string $path )

    public string getPath ( void )
    public string getNamespaceName ( void )
    public string resolveName ( string $name )
    public ReflectionClass getClass ( string $name )
    public ReflectionClass[] getClasses ( void )

}

Usage of course is straight forward too:, (*7)

use mindplay\filereflection\ReflectionFile;

$file = new ReflectionFile('/path/to/MyNamespace/MyClass.php');

var_dump($file->resolveName('MyOtherClass')); // => '\MyNamespace\MyOtherClass'

Note that this library currently omits reflection/enumeration of functions, constants, etc., (*8)

The Versions

17/06 2015

dev-master

9999999-dev

Complements the PHP reflection API with the missing ReflectionFile class

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0

 

The Development Requires

17/06 2015

1.2.1

1.2.1.0

Complements the PHP reflection API with the missing ReflectionFile class

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0

 

The Development Requires

03/06 2015

1.2.0

1.2.0.0

Complements the PHP reflection API with the missing ReflectionFile class

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0

 

The Development Requires

24/08 2014

1.1.0

1.1.0.0

Complements the PHP reflection API with the missing ReflectionFile class

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0

 

18/07 2014

1.0.0

1.0.0.0

Complements the PHP reflection API with the missing ReflectionFile class

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0