A tool to automatically fix PHP Coding Standards issues
Opening the entry
Opening the entry
PHP-Parser is a PHP parser written in PHP, intended to simplify static code analysis and manipulation. It parses PHP 7 and PHP 8 code into an abstract syntax tree with accurate location information, and can convert an AST back to PHP code. It is aimed at developers building tools that analyze or transform PHP source.
php composer.phar require nikic/php-parser
$parser = (new ParserFactory())->createForNewestSupportedVersion();
nikic/PHP-Parser is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.