I built a way to write PHP alongside your frontend

Опубликовано: 04 Февраль 2025
на канале: Aaron Francis
33,490
1.8k

Introducing Fusion: Seamlessly combine React and Vue with Laravel. I built a way to write PHP inside Vue & React components—and it actually works. No routes, no controllers, just instant backend-to-frontend magic in your Laravel app. Fusion bridges the gap between PHP and JavaScript like never before. Watch as I demo its power, from hot module reloading to full two-way state sync, all without leaving your Javascript file. This is Laravel + JavaScript like you've never seen before.

Support the development of Fusion: https://aaronfrancis.com/backstage
Fusion GitHub repository: https://github.com/fusion-php/fusion (Note: this is a developer preview -- still has some rough edges, but we must ship! Hope you like it!)

Follow me:
Twitter:   / aarondfrancis  
LinkedIn:   / aarondfrancis  
Website: https://aaronfrancis.com - find articles, podcasts, courses, and more.

Chapters:
00:00 - Mind-Blowing PHP in Javascript! 🤯
00:48 - Writing PHP Inside a Javascript Component?!
01:16 - What is Fusion? A Laravel + JavaScript Revolution
02:00 - No Routes, No Controllers—Just Magic ✨
02:48 - File-Based Routing & Route Model Binding
04:08 - Reactive Props and State Syncing
05:00 - Full Laravel Database Queries in Vue
06:26 - Automatic Type Safety (Coming Soon!)
07:14 - Seamless Error Handling for PHP & Vue
08:08 - Real-Time Search with Two-Way Data Flow
10:06 - Fusion's Built-In Loading & Success States
12:00 - Exposing PHP Functions Directly to Vue
14:00 - Alternative Syntax for PHP Purists
17:00 - The Future of Fusion: React, Svelte & More
19:32 - How to Get Involved & Support Fusion