accelade/pages
Composer 安装命令:
composer require accelade/pages
包简介
Build structured pages with consistent layouts, headers, footers, and slots for Laravel applications
README 文档
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.
accelade/pages 适用场景与选型建议
accelade/pages 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「layouts」 「pages」 「admin-panel」 「blade-components」 「accelade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 accelade/pages 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 accelade/pages 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 accelade/pages 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The "View Counter" bundle
Adjacency List’ed Closure Table database design pattern implementation for Laravel. Includes restore of tree
Kirby Layouts
Page module for AsgardCMS. Page management.
Alfabank REST API integration
Starting point for projects powered by Sylius eCommerce and Netgen Layouts.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-19