Extended Reflection API for PHP 5

Sebastian Bergmann » 21 September 2006 » in PHP » 2 Comments

The Extended Reflection API enhances PHP 5 by providing access to type information and annotations that are embedded as doc-comments into the sourcecode.

Processable additions to the source code enable a wide range of new applications in general, and Web Services and Aspect-Oriented Programming in particular.

Over a year ago I started to work on a similar project. Due to time limitations this effort never reached a state I was comfortable with for a first release. Today I removed the initial sources from PEAR's CVS repository.

Trackback specific URI for this entry

2 Comments to "Extended Reflection API for PHP 5"

Display comments as (Linear | Threaded)
  1. David
    21/09/2006 at 12:32 Permalink
    I created a class that extends the php5 reflection class with annotation support. I use it to generate WSDL files and handle DAO's. The notation style is the same as an array:

    /**
    * @Controller(type => DefaultController::TYPE_PLAIN, length => 100)
    */

    An example can be found in the /tests dir in the following download:
    http://jool.nl/2,download.html

    Reply

  2. johno
    24/10/2006 at 01:03 Permalink
    I used similar approach that extends ReflectionAPI.

    http://code.google.com/p/addendum/

    Reply

0 Trackbacks to "Extended Reflection API for PHP 5"

  1. No Trackbacks

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.