Livewire 4 is a full-stack framework for Laravel that simplifies building dynamic interfaces. It allows developers to create reactive, modern web applications using PHP without needing extensive JavaScript knowledge. Caleb Porzio is the creator of Livewire.
Key features of Livewire 4 include single-file components (where PHP logic, Blade templates, and JavaScript can coexist), a new view-first system, better project structure with intuitive directories, and features like component slots and attributes. It introduces features such as Islands for isolated rendering, built-in drag and drop functionality, and the wire:transition directive for simplified UI animations. Livewire 4 also boasts performance improvements, including faster rendering and non-blocking polling. The new "Blaze" compiler speeds up Blade rendering. It also introduces a data-loading attribute for styling loading states.
Livewire 4 maintains backward compatibility, meaning existing components will continue to work. New components default to the single-file format, but class-based components remain supported. As a framework, Livewire itself is free to use. However, related products like Laravel Daily memberships or Flux UI components have their own pricing.