realpoke / acto-wire
Opinionated Laravel starter kit (FluxUI Pro + Alpine.js + TailwindCSS + Livewire) with a clean Action architecture and ready-to-deploy Laravel Cloud pipeline.
Requires
- php: ^8.2
- laravel/framework: ^12.0
- laravel/reverb: ^1.0
- laravel/tinker: ^2.10.1
- livewire/flux: ^2.1
- livewire/flux-pro: ^2.1
- livewire/livewire: ^3.6
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.15
- barryvdh/laravel-ide-helper: ^3.5
- fakerphp/faker: ^1.23
- larastan/larastan: ^3.0
- laravel/pint: ^1.13
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- peckphp/peck: ^0.1.3
- pestphp/pest: ^3.8
- pestphp/pest-plugin-type-coverage: ^3.5
- phpstan/phpstan: ^2.1
- rector/rector: ^2.0
- soloterm/solo: ^0.5.0
This package is auto-updated.
Last update: 2025-05-23 13:22:44 UTC
README
An opinionated Laravel FATLL stack website base. Live Demo
Stack
- FluxUI Pro – Premium UI component library for Livewire.
- Alpine.js – Minimal, reactive JavaScript framework for handling UI interactivity.
- TailwindCSS – Utility-first CSS framework for rapid, customizable design.
- Laravel – Modern PHP framework for building robust websites.
- Livewire – Full-stack framework for building dynamic interfaces in Laravel.
Development Setup
-
Clone the repo:
-
Using GitHub Template:
Click "Use this template" on the GitHub repo page to create a new repository and clone it.
-
Manually:
git clone https://github.com/realpoke/acto-wire cd acto-wire
-
Laravel Installer:
laravel new --using=realpoke/acto-wire cd acto-wire
-
Laravel Herd:
-
-
Set up and run the development environment:
-
Initial Setup: First time starting the development environment, use the setup script:
composer setup
-
Start the development environment: Run this to start the development environment:
composer dev
-
GitHub Setup & Secrets
-
Create a GitHub repository.
-
Add the following repository secrets:
LARAVEL_CLOUD_API_TOKEN
→ Your Laravel Cloud Deploy Hook URLFLUX_USERNAME
→ Your email for Flux ProFLUX_LICENSE_KEY
→ Your Flux Pro license key
-
Push your code:
git remote add origin https://github.com/your-username/your-repo.git git branch -M main git push -u origin main
Deployment to Laravel Cloud
-
Make sure all tests pass.
-
Change the Git branch to
production
in the general settings on Laravel Cloud. -
Simply push to the
production
branch on Github.
NOTE You might want to setup custom deploy commands, here are some examples on Laravel Cloud:
Build Commands:
composer config http-basic.composer.fluxui.dev my@email.com my-super-secret-flux-key composer install --no-dev npm install -g bun bun install bun run build
Deploy Commands:
php artisan migrate --force php artisan optimize
Auto-deploy: Once the tests pass and the code is committed to the production
branch, the auto-deployment pipeline triggers and pushes the code to Laravel Cloud.
Action Pattern / Command Pattern with Dependency Injection
This project leverages the Action Pattern (Command Pattern) extensively, using Dependency Injection (DI) to promote clean, scalable, and maintainable code.
The Command Pattern encapsulates actions as objects, decoupling the logic execution from the request. Each command is responsible for executing a specific task, and DI is used to inject necessary services, enhancing testability and flexibility.
The FATLL stack (Flux Pro, Alpine.js, TailwindCSS, Laravel, Livewire) integrates seamlessly with this pattern, allowing for clear separation of concerns and effective management of actions across the application. DI ensures all dependencies are automatically resolved, making it easy to manage complex workflows and actions.
License
The Laravel framework is open-sourced software licensed under the MIT license. As a derivative, ActoWire Starter Kit is also licensed under the same MIT license.