Top Level :: PHP

Package Information: PHP_Parser

This package is not maintained, if you would like to take over please go to this page.
» Summary » License
A PHP Grammar Parser PHP License
» Current Release » Bug Summary
0.2.2 (alpha) was released on 2010-10-25 by doconnor (Changelog)
Easy Install

Not sure? Get more info.

pear install PHP_Parser

Pyrus Install

Try PEAR2's installer, Pyrus.

php pyrus.phar install pear/PHP_Parser


Development Roadmap
  • Package Maintenance Rank: 174 of 225 packages with open bugs
  • Number of open bugs: 3 (11 total bugs)
  • Average age of open bugs: 5427 days
  • Oldest open bug: 6115 days
  • Number of open feature requests: 1 (1 total feature requests)

Report a new bug to PHP_Parser
» Description
PHP_Parser is a source code analysis tool based around a real Parser
generated by PHP_ParserGenerator. The parser uses the same EBNF source that PHP
uses to parse itself, modified for Lemon parser format, and it therefore as robust
as PHP itself.

This version has full support for parsing out every re-usable element
in PHP as of PHP 6:
- classes
- abstract classes
- inheritance, implements
- interfaces
- methods
- any thrown or caught exception
- static variables declared
- global and superglobal ($_GET) variables used
and declared
- any class names used in any context
- any functions called
- any $this->var or class::$var
- any $this->method or class::method() or class::$method()
- variables
- constants
- functions (same information as methods minus $this->/self::/parent:: information)
- defines
- global variables (with help of PHP_Parser_DocblockParser)
- superglobal variables used in global code
- include statements

The output can be customized to return an array, return
objects of user-specified classes, and can also be
customized to publish each element as it is parsed, allowing
hooks into parsing to catch information.
» Maintainers » More Information

Dependencies for PHP_Parser