Laracon DB
Laracon DB
Talks for "code-optimization"
Transforming PHP

Chris discusses how developers can add custom syntax to PHP using different approaches. He explains three main methods: submitting syntax changes to PHP core, creating a custom compiler, and using language macros through tools like 'yay' and 'pre'. The talk focuses heavily on language macros as a practical solution, demonstrating examples like shorter closures, async/await syntax, and class accessors that allow developers to write cleaner, more expressive code while maintaining PHP compatibility.