Search by

oe2i / panda

osawereao

Opinionated Laravel 13 + Livewire 4 + Flux UI starter kit.

Package info

github.com/oe2i/panda

Type:project

pkg:composer/oe2i/panda

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

v1.0.2 2026-11-29 19:21 UTC

This package is auto-updated.

Last update: 2026-11-30 01:41:51 UTC


README

🐼 PANDA

Opinionated Laravel 13 Starter Kit © 2026 Oe2i™

CI Tests Latest Release Total Downloads License

PHP Laravel PHPStan Pint Creator

Panda is an opinionated Laravel starter kit by Oe2i, pre-configured with Laravel 13, PHP 8.5, Livewire 4, Flux UI, Tailwind CSS v4, strict static analysis, automated refactoring, and a comprehensive Spatie & Pest ecosystem.

Table of Contents

Requirements

  • PHP ^8.5
  • Composer ^2.x
  • Node.js & npm (for Vite+, Tailwind CSS v4, and Playwright)
  • Database: SQLite (default), MySQL, or PostgreSQL
  • Chromium / Playwright (optional, required for Pest Browser tests, Browsershot, and Spatie Laravel PDF)

Quick Setup (via Composer)

Option 1: Create a New Project via Composer

composer create-project oe2i/panda panda
cd panda

When creating a project via Composer, post-root-package-install and post-create-project-cmd automatically:

  1. Copy .env.example to .env (if .env does not exist)
  2. Run php artisan key:generate --ansi
  3. Create database/database.sqlite (if missing)
  4. Run php artisan migrate --graceful --ansi

Then install frontend dependencies and build assets:

npm install
npm run build

Optionally, initialize Git with the main + spartan branch workflow:

git init -b main
git add .
git commit -m "chore | setup: initialize project"
git switch -c spartan
composer install

This:

  1. Initializes a new Git repository on the main branch
  2. Stages and creates the initial commit on main
  3. Creates and switches to the spartan development branch (used by composer push:spartan)
  4. Re-runs composer install so post-install-cmd installs .githooks/pre-commit into .git/hooks/

Option 2: Clone / Existing Repository Setup

If you cloned the repository directly (git clone https://github.com/oe2i/panda.git my-app), run the built-in Composer setup script:

composer setup

This runs:

  1. composer install
  2. Copies .env.example to .env (if missing)
  3. php artisan key:generate
  4. Creates database/database.sqlite (if missing)
  5. php artisan migrate --force
  6. npm install
  7. npm run build

Initialization

After setting up a new project, see docs/initialization.md for post-setup initialization steps (publishing Laravel stubs, mail views, and notification templates).

Development

Start the development environment (server, queue/logs, and Vite+ dev server):

composer dev

Or run the frontend dev server / production build individually:

npm run dev     # Starts Vite+ dev server (vp dev)
npm run build   # Builds production assets (vp build)

Included Packages & What They Do

View all included packages and their roles

Core Framework, UI & Routing

Package Purpose
laravel/framework (^13.17) Core Laravel 13 application framework.
livewire/livewire (^4.1) Full-stack reactive UI framework for Laravel without writing custom JavaScript.
livewire/flux (^2.13.1) Official UI component library for Livewire (buttons, modals, forms, tables, etc.).
livewire/blaze (^1.0) High-performance Blade component compiler/optimizer for Livewire & Blade.
laravel/folio (^1.3) Page-based file routing (resources/views/pages).
laravel/prompts (^0.3.27) Rich interactive CLI prompts for Artisan commands.
laravel/tinker (^3.0) Interactive REPL for debugging and inspecting the application.
nunomaduro/essentials (^1.2.0) Opinionated Laravel defaults (strict models, immutable dates, auto-eager loading, etc.).
laravel/chisel (^0.1.0) Laravel CLI/scaffolding utility.
laravel/ai (^1.4) Official AI SDK for Laravel.

Authentication, Passkeys & Security

Package Purpose
laravel/fortify (^1.37.2) Headless authentication backend (login, registration, 2FA, password reset, email verification).
laravel/sanctum (^4.0) Lightweight API token and SPA authentication.
@laravel/passkeys (^0.2.0) WebAuthn / Passkey authentication support (backed by the included passkeys migration).
spatie/laravel-permission (^8.5) Role and permission management (HasRoles, Gate integration, config/permission.php).
spatie/laravel-csp (^3.31) Content Security Policy (CSP) header management (config/csp.php).

Data, Queries, Logging & Utilities

Package Purpose
spatie/laravel-data (^4.23) Typed DTOs, request validation, and data transformation (config/data.php).
spatie/laravel-query-builder (^7.3) Build Eloquent queries from API request filters, sorts, and includes (config/query-builder.php).
spatie/laravel-activitylog (^5.1) Log user and model activity to the database (config/activitylog.php).
spatie/laravel-sluggable (^6.0) Automatic URL-friendly slug generation for Eloquent models (config/sluggable.php).
spatie/laravel-translatable (^6.15) Store and retrieve JSON-based multi-language model attributes.
spatie/laravel-backup (^10.5) Automated database and file backups (config/backup.php).
spatie/laravel-pdf (^2.14) Generate PDFs from Blade views using Chromium/Browsershot.
spatie/browsershot (^5.5) Headless Chrome/Chromium wrapper for screenshots and PDFs.
spatie/simple-excel (^3.11) Fast, low-memory Excel (.xlsx) and CSV import/export.

Developer Experience, Testing & Code Quality (require-dev)

Package Purpose
pestphp/pest (^5.3) Primary testing framework, bundled with arch, browser, faker, laravel, livewire, profanity, stressless, and type-coverage plugins.
larastan/larastan (^3.15) PHPStan static analysis for Laravel, configured at level: max in phpstan.neon.
laravel/pint (^1.27) Opinionated PHP code formatter (pint.json using the laravel preset).
rector/rector (^2.8) & driftingly/rector-laravel (^2.7) Automated PHP & Laravel code upgrades and refactoring (rector.php).
peckphp/peck (^0.3.0) Spell-checking and typo detection for code, comments, and filenames (peck.json).
laravel/boost (^2.2) AI coding assistant MCP server, guidelines, and skills (boost.json).
fruitcake/laravel-debugbar (^4.4) In-browser debugging toolbar for queries, routes, views, and performance.
laravel/pail (^1.2.5) Real-time CLI log tailing (php artisan pail).
laravel/pao (^1.0.6) Laravel developer tooling utility.
laravel/sail (^1.53) Docker-based local development environment.
roave/security-advisories Prevents installing dependencies with known security vulnerabilities.

Secondary & Maintenance Commands

Code Quality, Linting & Testing

Run the full CI check suite (config clear, Pint + Rector dry-run, PHPStan, and Pest tests):

composer test
# or
composer ci:check

Individual quality checks and fixers:

composer lint               # Auto-fix code with Rector and Pint
composer lint:check         # Check formatting & refactoring without modifying files (Pint parallel + Rector dry-run)
composer types:check        # Run PHPStan (level: max)
composer test:type-coverage # Verify 100% type coverage with Pest
vendor/bin/peck             # Run spell-check / typo detection
vendor/bin/pint --dirty     # Format only modified PHP files

Composer Shortcuts (oe:*) & Git Hooks

Additional convenience scripts for testing, quality checks, cache clearing, and Composer health:

Command Description
composer oe:care Run profanity check, type coverage, Pint, and PHPStan in sequence
composer oe:check Validate composer.json, platform reqs, security audit, and direct outdated packages
composer oe:health Run composer diagnose, full outdated list, and dependency tree
composer oe:clear Clear cache, config, route, and view caches
composer oe:pest Run Pest
composer oe:parallel Run Pest in parallel
composer oe:dirty Run Pest only on dirty files
composer oe:tia Run Pest in parallel with Test Impact Analysis
composer oe:coverage Run Pest with coverage
composer oe:mutate Run Pest mutation testing
composer oe:profanity Run Pest profanity check on app/ and tests/
composer oe:type Run Pest type coverage (--min=90, --memory-limit=2G) on app/ and routes/
composer oe:pint Run Pint
composer oe:pint-check Run pint --test
composer oe:rector Run Rector
composer oe:rector-dry Run rector --dry-run
composer oe:stan Run PHPStan with --memory-limit=2G

Note

Running composer install or composer update also automatically installs .githooks/pre-commit into .git/hooks/pre-commit (runs composer oe:pint and re-stages modified .php files).

Running Specific Tests

php artisan test --compact
php artisan test --compact --filter=YourTestName
vendor/bin/pest tests/Feature/ExampleTest.php

Browser & PDF Prerequisites (Playwright / Browsershot)

If you use Pest Browser tests, Spatie Browsershot, or Spatie Laravel PDF, install Playwright's Chromium binary:

npx playwright install chromium

Package Initialization & Publishing

Most package configurations and migrations are already published in this starter kit (config/activitylog.php, config/backup.php, config/csp.php, config/data.php, config/fortify.php, config/permission.php, config/query-builder.php, config/sanctum.php, config/sluggable.php, plus boost.json, peck.json, phpstan.neon, pint.json, and rector.php).

If you need to publish additional configs/assets or re-initialize a package:

  • Spatie Laravel PDF (config not published by default):
    php artisan vendor:publish --tag="laravel-pdf-config"
  • Livewire (publish config or assets):
    php artisan livewire:publish --config
    php artisan livewire:publish --assets
  • Laravel Folio (if re-installing/registering FolioServiceProvider):
    php artisan folio:install
  • Laravel Fortify (if re-publishing Fortify resources):
    php artisan fortify:install
  • Laravel Sanctum (if setting up API routes & Sanctum):
    php artisan install:api
  • Nunomaduro Essentials (publish config if customizing defaults):
    php artisan vendor:publish --tag="essentials-config"
  • Spatie Packages (re-publish configs/migrations if needed):
    php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
    php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider"
    php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
    php artisan vendor:publish --tag="csp-config"
    php artisan vendor:publish --tag="data-config"
    php artisan vendor:publish --tag="query-builder-config"
    php artisan vendor:publish --tag="sluggable-config"
  • Laravel Boost (update AI guidelines, MCP config, and skills):
    php artisan boost:install
  • Laravel Sail (initialize Docker environment):
    php artisan sail:install
    ./vendor/bin/sail up -d
  • Pest / Peck / Rector (already initialized; re-init only if resetting):
    ./vendor/bin/pest --init
    ./vendor/bin/peck --init

Package-Specific Artisan Commands

  • Database & Migrations (includes Users, Cache, Jobs, Passkeys, Two-Factor Auth, Sanctum Personal Access Tokens, Spatie Permissions, and Activity Log):
    php artisan migrate
  • Clear / Rebuild Caches:
    php artisan optimize:clear
  • Tail Application Logs:
    php artisan pail
  • Backup Database & Files (Spatie Backup):
    php artisan backup:run
  • Inspect Folio Routes:
    php artisan folio:list
  • Docker / Sail (if using Sail instead of local PHP):
    php artisan sail:install
    ./vendor/bin/sail up -d
  • Laravel Boost (if updating AI guidelines/skills):
    php artisan boost:install

Release Management

Panda supports three ways to cut a semver release from main:

1. Automatic Release on PR Merge (GitHub Actions)

Include one of the following markers in the PR title or description when merging into main:

  • [release:patch] — bumps the patch version (v1.0.1 -> v1.0.2)
  • [release:minor] — bumps the minor version (v1.0.1 -> v1.1.0)
  • [release:major] — bumps the major version (v1.0.1 -> v2.0.0)

When the PR is merged, .github/workflows/release.yml automatically creates and pushes the annotated git tag and publishes a GitHub Release with generated notes. PRs without a marker merge normally without triggering a release.

Optional deploy on release: If you set a DEPLOY_WEBHOOK_URL repository secret (e.g. from Forge, Envoyer, Coolify, or Render), the release workflow will also POST to that webhook after creating the release. Leave the secret unset to skip it (for example, if your host already auto-deploys on main).

2. Manual Release via GitHub Actions

Go to Actions → Release → Run workflow on main, choose patch, minor, or major, and run it to tag main and publish a GitHub Release without switching branches locally.

3. Local Release via Composer

You can also run the local semver release script (scripts/release.php) from main:

composer release -- patch   # v1.0.0 -> v1.0.1 (first release: v1.0.0)
composer release -- minor   # v1.0.1 -> v1.1.0 (first release: v1.0.0)
composer release -- major   # v1.1.0 -> v2.0.0 (first release: v1.0.0)

See docs/release.md for full setup, branch guard configuration, and behavior details.

CI, Commits & Push Workflow

  • Run composer push:spartan to execute composer ci:check locally before pushing to spartan. See docs/ci.md for details on local checks and GitHub Actions CI.
  • Follow the commit format defined in .gitmessage (<type> | <scope>: <short summary>). See docs/commits.md for commit guidelines.

Changelog

See CHANGELOG.md for a history of notable changes, grouped by Added, Changed, Deprecated, Removed, Fixed, and Security.

Maintainer

  • Anthony Osawere, AO™
    🌐 osawere.com
    ✉️ anthony@osawere.com
    dev-null.sh  LinkedIn  X  Instagram  TikTok  YouTube

Support

Copyright © 2026 Oe2i™.