Stagehand_PHP_Class_Parser 0.2.0 (beta) released


I am pleased to announce that the Stagehand_PHP_Class_Parser 0.2.0 (beta) is now available.

Release Date: 2009-09-11

What's New in Stagehand_PHP_Class_Parser 0.2.0

A new method: parseContents()

Added a new method: support for parsing from text content of PHP script. Stagehand_PHP_Class_Parser could parse only a PHP file in previous versions.

<?php
$code = <<<PHP_CODE
<?php
class ExampleClass
{
    public $attribute;

    public function doSomeMethod() { }
}
PHP_CODE;

$class = Stagehand_PHP_Class_Parser::parseContents($code);

Posted by: Kumatch | September 11, 2009 5:31 PM |

Trackbacks

Trackback URL for this entry:

Post a comment

( If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting. )