

882: Aaron Francis is putting PHP in Your JS Files
14 snips Mar 5, 2025
Aaron Francis, a Laravel developer and co-founder of Try Hard Studios, dives into the innovative Fusion for Laravel—an exciting way to merge PHP with JavaScript. He discusses how Fusion enhances front-end interactions and simplifies full-stack development while addressing challenges like state management and data fetching. The conversation also explores optimistic UI for smoother user experiences and hints at future collaborations between PHP and JavaScript, particularly with React support. Plus, he shares amusing stories about domain name acquisitions!
AI Snips
Chapters
Transcript
Episode notes
Aaron's PHP Journey
- Aaron Francis initially used ASP.NET but switched to PHP and various PHP frameworks like Yii and CakePHP.
- He eventually settled on Laravel, which he has used since version 5.
Fusion for Laravel's Purpose
- Fusion for Laravel builds upon Inertia.js, extending its capabilities to deeply integrate PHP into JavaScript.
- It aims to simplify full-stack development by allowing developers to write PHP within JavaScript components.
Single-File Component Architecture
- Fusion for Laravel emphasizes single-file components, treating the PHP block within them as thin controllers.
- Business logic resides in separate service classes or actions, promoting better organization and reusability.