News

Introducing Fusion - write PHP inside Vue and React components

Published

Aaron Francis just announced a new tool called Fusion that allows you to write PHP inside Vue and React components:

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.

Here is just one example of this in action:

<!-- app.vue -->
<php>
$user = prop(Auth::user()->email);
</php>
 
<template>
<div>{{ user }}</div>
</template>

With Fusion you can:

  • Write PHP and JavaScript in the same file.
  • Call backend functions directly from the frontend.
  • Automatically sync state between your backend and frontend.
  • Get full end-to-end type safety (coming soon!).

Check out the Youtube video for a demo and more details on it.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Filed in

Sponsored

serpapi logo
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article