Install Electrik

Electrik ships as a Composer package. Your app keeps custom code in App\; product code lives under Electrik\ in vendor.

Requirements

  • PHP 8.3+
  • Laravel 12+
  • Livewire 4
  • Tailwind CSS v4
  • electrik/slate ^3.0@alpha
  • Stripe account (test mode is fine for local dev)

Quickstart

composer require electrik/electrik:^5.0@alpha
php artisan electrik:install
php artisan migrate
npm install && npm run build
php artisan serve

electrik:install publishes config, runs migrations, wires Slate CSS and @source, registers routes, and syncs team permissions. Use --migrate on existing apps.

Stripe and plans

# .env
STRIPE_KEY=pk_test_...
STRIPE_SECRET=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...

php artisan electrik:stripe:sync

Then open /billing in your app to subscribe with Cashier on the team model.

Demo dataset

php artisan storage:link
php artisan electrik:seed-demo

Creates demo@@electrik.dev / password, a sample team, roles, and marks onboarding complete. Try the hosted demo at https://demo.electrik.dev.

UI customization

Components are <x-slate::*> from Electrik Slate. Docs, blocks, and themes live at slate.electrik.dev. Do not copy Electrik views into your app unless you intend to override them.

Local lab checkout

Clone github.com/electrikhq/electrik and use the sandbox reset script documented in the README for a path-repo workspace.