Download the PHP package sirgrimorum/pages without Composer
On this page you can find all versions of the php package sirgrimorum/pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sirgrimorum/pages
More information about sirgrimorum/pages
Files in sirgrimorum/pages
Package pages
Short Description Content manager by pages for Laravel 5.6
License MIT
Homepage https://github.com/sirgrimorum/pages
Informations about the package pages
Pages
Database-driven page and section manager for Laravel. Define structured pages composed of independent sections, control access per page or section via policy closures, inject dynamic content from Eloquent collections, and wire everything into AutoMenu navigation — all from configuration.
Features
- Database-backed pages and sections — manage content via CRUD admin (requires sirgrimorum/crudgenerator)
- Composable sections — pages are assembled from ordered, independently-controlled sections
- Policy-based access control — flexible wildcard pattern rules per page and section name
- Special sections — inject dynamic content (Blade templates, model collections, method results) into page content via
{%%name%%}placeholders - AutoMenu integration — automatically populate a menu with all accessible pages
- Localized routes — optional URL localization out of the box
- Blade directives — render pages and sections from any template
- Seeder generation — dump pages/sections to a seed file with one command
Requirements
- PHP >= 8.2
- Laravel >= 9.0
- sirgrimorum/transarticles ^1.3
- sirgrimorum/crudgenerator ^3.8
Installation
Run migrations
Creates the paginas (pages) and sections tables.
Publish configuration
Publishes config/sirgrimorum/pages.php.
Publish language files (optional)
Publish views (optional)
Register CRUD configurations
Registers the Pagina and Section models with CrudGenerator so they can be managed via the admin interface.
Configuration
config/sirgrimorum/pages.php
Routing
View layout
Asset injection
Access control policies
Define access rules using name patterns. More specific patterns take precedence.
Pattern matching rules (in order of precedence):
pageName— exact match*name— ends with "name"name*— starts with "name"*name*— contains "name"_general— catch-all
Special sections
Special sections let you inject dynamic content into pages using {%%name%%} placeholders in page templates.
In your page template (stored in the database):
Usage
Render a page
Render a single section
Build an AutoMenu config with pages
Check access programmatically
API Reference
Pages::buildPage()
Returns the rendered HTML for the page, including all its sections.
Pages::buildSection()
Returns the rendered HTML for a single section.
Pages::getFirstAllowedPage()
Returns the first page the current user is allowed to view.
Pages::getAutoMenuConfig()
Blade directives
Artisan Commands
| Command | Description |
|---|---|
pages:registercrud |
Register Pagina and Section models with CrudGenerator |
pages:createseed |
Generate a seed file from the current pages/sections data |
pages:registermiddleware |
Register package middleware in the application |
License
The MIT License (MIT). See LICENSE.md.
All versions of pages with dependencies
laravel/framework Version ^12.69
sirgrimorum/transarticles Version ^1.3
sirgrimorum/crudgenerator Version ^3.8