Skip to content

Awesome sources for amazing AST topic in world PHP

Notifications You must be signed in to change notification settings

TomasVotruba/awesome-php-ast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

Awesome PHP AST Awesome

A curated list of amazingly awesome tools, articles and books about abstract syntax tree in PHP world. From parsing PHP, through traversing templates and configs through automated upgrades.


Note: this repository should not be list of tools that run on nikic/php-parser, but rather tools that main feature developer actually works with is abstract syntax tree.

  • Good example - PHPStan, because you work with PHP nodes in every single rule.
  • Bad example - Twig, it has structure in AST and has node visitors, but marginal number of developers use it. It's main feature is template compilation, filters and functions.

Do you miss a project, tool or article, that you consider useful to the broader AST PHP community? Send a pull-request, so we can check it.


Native PHP

Parsing

Analyzing

Modifying

Visualizing

  • https://php-ast-viewer.com/ - The PHP AST Viewer is a tool for viewing the Abstract Syntax Tree of PHP code. By visualizing the structure, it helps developers gain a deeper understanding of the code, thus improving code quality and maintenance efficiency.

Templates

TWIG

Latte

Blade

HTML


Databases


License

CC0

To the extent possible under law, Tomas Votruba has waived all copyright and related or neighboring rights to this work.

About

Awesome sources for amazing AST topic in world PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •