Why you should grow your knowledge of the Abstract Syntax Tree


At first glance the the Abstract Syntax Tree (AST) seems something that should only concern those that work with the internals of PHP. However there are a number of tools, mainly static analysers, that make use of the AST.

This talk will introduce the AST and then provide 2 simple practical examples of how to use it. The first example shows how to create a very simple custom rule for the static analyser PHPStan. The second example shows how, using a tool called rector, source code can be refactored.

See more talks.

This talk has not been given yet. Why not message Dave and invite him to your local usergroup or conference?