Download the PHP package singlephon/rift without Composer
On this page you can find all versions of the php package singlephon/rift. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download singlephon/rift
More information about singlephon/rift
Files in singlephon/rift
Package rift
Short Description Rift is a minimalist framework that extends Laravel Livewire, allowing you to create structured two-way communication between PHP and JavaScript for your components.
License MIT
Homepage https://github.com/singlephon/rift
Informations about the package rift
Rift
A lightweight micro-framework that connects Blade, Livewire, Alpine.js, and JavaScript classes seamlessly for modern Laravel projects.
🚀 Features
✅ Generate Livewire, Blade, and JS components in one command
✅ Connect Blade ↔ Alpine.js ↔ JavaScript ↔ Livewire effortlessly
✅ Automatic JS dependency injection with clean syntax
✅ Lightweight, clean API
✅ Supports hot-reload, dynamic mounting, and reactivity
🛠️ Installation
PHP (Laravel)
Install via Composer:
`
Then install via NPM:
JavaScript (NPM)
Import Rift in your resources/js/app.js:
Getting Started with Rift
1️⃣ Generate a new Rift component
✅ You will see:
2️⃣ Add logic to your generated JS class
Open:
Replace contents with:
3️⃣ Add UI to your generated Blade view
Open:
Replace contents with:
4️⃣ Test your component
Add this to any page or Livewire component:
✅ Now visit your page:
- You will see a counter with
+and-buttons. - Clicking
+increases the counter. - Clicking
-decreases the counter. - The state is reactive and persistent across Livewire updates.
Why Rift?
- ✅ Seamlessly binds Blade, Alpine.js, JS classes, and Livewire.
- ✅ Clean syntax with no boilerplate.
- ✅ CLI generator for automatic structure creation.
- ✅ Ready for complex UI composition with clean separation of concerns.
//: # () //: # ()
🗂 Project Structure
phppackage (Composer): manages Blade + Livewire generationjspackage (npm): manages RiftContainer, RiftComponent, and automatic mounting
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Rakhat Bakytzhanov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.