ceus-media/php-parser

PHP parser written in PHP

0.3.2 2023-10-29 23:04 UTC

This package is auto-updated.

Last update: 2024-04-14 04:44:32 UTC


README

Branch Release PHP version PHPStan level License
Hint: Use branch 0.4.x for PHP >= 8.1.

PHP parser (and renderer) written in PHP

  • collection of Classes for PHP language concepts, like:
    • variables and class members
    • functions and class methods
    • parameters of functions and methods
    • return types of functions and methods
    • accessibility of variables, members and methods
    • abstraction of classes and methods
    • class attributes like final, extends, implements
    • plus a file which holds variables, functions and classes
  • a parser to read PHP
    • as string or file into a tree structure
  • a renderer to build PHP
    • from a defined or parsed tree structure