This talk explores PHP parsing using the PHP-Parser library. The speaker demonstrates how to parse PHP code into an abstract syntax tree (AST), manipulate the AST, and transform it back into PHP code. Through practical examples, he shows how to modify strings, remove dump statements, and wrap echo statements in function calls - techniques that are used in tools like Laravel Tinker Well.
Sam Greenwood presents a comprehensive talk on the importance of types and static analysis in PHP and Laravel applications. He discusses different types of typing systems, the benefits of static analysis tools like PHPStan, Psalm, and Larastan, and how these tools can help improve code quality and catch potential errors before runtime, especially in legacy applications.