accelade / pages
Build structured pages with consistent layouts, headers, footers, and slots for Laravel applications
Fund package maintenance!
fadymondy
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
pkg:composer/accelade/pages
Requires
- php: ^8.2|^8.3|^8.4
- accelade/accelade: ^1.0
- illuminate/support: ^11.0|^12.0
Requires (Dev)
- laravel/pint: ^1.18
- orchestra/testbench: ^9.0|^10.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
This package is not auto-updated.
Last update: 2026-01-19 18:49:54 UTC
README
Build structured pages with consistent layouts, headers, footers, and slots for Laravel applications. Part of the Accelade ecosystem.
Features
- Page Component -
<x-pages::page>for consistent page structure - Multiple Layouts - App (full), Simple (centered card), Empty (minimal)
- Headers & Footers - Customizable heading, subheading, and footer slots
- Panel Integration - Automatically uses panel layouts when available
- Standalone Mode - Works independently without panel package
- Accelade Integration - Includes
@acceladeStylesand@acceladeScriptsdirectives
Installation
You can install the package via composer:
composer require accelade/pages
You can publish the config file with:
php artisan vendor:publish --tag="accelade-pages-config"
Quick Start
Basic Page
<x-pages::page title="Dashboard" heading="Dashboard" subheading="Welcome to your dashboard"> <div class="grid gap-6 md:grid-cols-2 lg:grid-cols-4"> {{-- Your content --}} </div> </x-pages::page>
Page with Custom Header
<x-pages::page title="Users"> <x-slot:header> <div class="flex items-center justify-between"> <h1 class="text-2xl font-bold">User Management</h1> <button class="btn btn-primary">Add User</button> </div> </x-slot:header> {{-- Content --}} </x-pages::page>
Simple Layout (Login/Register)
<x-pages::page layout="simple" title="Login"> <form> {{-- Login form --}} </form> <x-slot:footer> <a href="/register">Don't have an account? Register</a> </x-slot:footer> </x-pages::page>
Empty Layout
<x-pages::page layout="empty" title="Print Preview"> {{-- Minimal content without any chrome --}} </x-pages::page>
Layouts
| Layout | Description |
|---|---|
app |
Full layout with header, sidebar, footer (default) |
simple |
Centered card layout, ideal for auth pages |
empty |
Minimal layout without any chrome |
Panel Integration
When used with accelade/panel, pages automatically:
- Use panel's themed layouts (
panel::layouts.app, etc.) - Include panel's navigation, header, and footer
- Apply panel's color scheme and theme
When used standalone (without panel):
- Uses built-in responsive layouts
- Includes dark mode toggle
- Integrates Accelade notifications
Documentation
The package includes comprehensive documentation available in the Accelade docs portal:
- Getting Started - Installation and basic usage
- Layouts - Available layouts and customization
- Headers & Slots - Working with slots and custom headers
- Examples - Real-world usage examples
- PHP Classes - Using Page classes programmatically
Testing
# Run tests composer test # Run tests with coverage composer test:coverage # Run code formatter composer format # Run mago linter composer mago
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.