PHPackages                             iamgerwin/filament-page-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. iamgerwin/filament-page-manager

ActiveLibrary[Templating &amp; Views](/categories/templating)

iamgerwin/filament-page-manager
===============================

A comprehensive page management system for Filament v4 with templates, regions, SEO, and multilingual support

v1.0.3(9mo ago)02[4 PRs](https://github.com/iamgerwin/filament-page-manager/pulls)MITPHPPHP ^8.3CI passing

Since Sep 23Pushed 2mo agoCompare

[ Source](https://github.com/iamgerwin/filament-page-manager)[ Packagist](https://packagist.org/packages/iamgerwin/filament-page-manager)[ Docs](https://github.com/iamgerwin/filament-page-manager)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/iamgerwin-filament-page-manager/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (20)Versions (10)Used By (0)

Filament Page Manager
=====================

[](#filament-page-manager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/24e1b4650c8742e71e1e3917dbd62ae5ef90993c0ee50231d2f27f182a657ab1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69616d67657277696e2f66696c616d656e742d706167652d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iamgerwin/filament-page-manager)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5dca3c3f74ceb75f02bd11a978e44b5875f36da048c0178d985c6141d04d9c40/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69616d67657277696e2f66696c616d656e742d706167652d6d616e616765722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/iamgerwin/filament-page-manager/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1180e9d098c7235b7b825995a22da8010f2482a55ca70e35c4810d90027b3b84/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69616d67657277696e2f66696c616d656e742d706167652d6d616e616765722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/iamgerwin/filament-page-manager/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b89c753eb5200ed617d4bc06ce87fab32a29d6d81aaec31187c80ed9b7d6791a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69616d67657277696e2f66696c616d656e742d706167652d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iamgerwin/filament-page-manager)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![PHP Version](https://camo.githubusercontent.com/59a9072067b5d43969ddfa412f58236639545459aeb43aa9dff644b29c032b3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f69616d67657277696e2f66696c616d656e742d706167652d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iamgerwin/filament-page-manager)

A comprehensive page management system for Filament v4 with advanced features including template-based content management, regions, multilingual support, SEO optimization, and hierarchical page structures.

Features
--------

[](#features)

- **Page Management**: Create and manage static pages with hierarchical structure
- **Template System**: Flexible template-based content architecture
- **Region Management**: Reusable content blocks across pages
- **Multilingual Support**: Full translation support with locale management
- **SEO Optimization**: Built-in SEO fields and meta tag management
- **Drag &amp; Drop Sorting**: Reorderable pages with sort order
- **Draft/Publish System**: Control page visibility with publish states
- **Page Duplication**: Quick page copying with automatic slug generation
- **Cache Management**: Optimized performance with intelligent caching
- **PHP 8.3 Features**: Leveraging modern PHP capabilities
- **PHPStan Level 8**: Full static analysis compliance for type safety
- **100% Test Coverage**: Comprehensive test suite with Pest PHP

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- Laravel 11.0 or higher
- Filament 4.0 or higher

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require iamgerwin/filament-page-manager
```

Register the plugin in your Panel provider (e.g., `app/Providers/Filament/AdminPanelProvider.php`):

```
use IamGerwin\FilamentPageManager\FilamentPageManagerPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configuration
        ->plugins([
            FilamentPageManagerPlugin::make(),
        ]);
}
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-page-manager-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-page-manager-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-page-manager-views"
```

Configuration
-------------

[](#configuration)

The configuration file `config/filament-page-manager.php` allows you to customize:

- Database table names
- Model and resource classes
- Template registration
- Locale settings
- SEO configuration
- Navigation settings
- Feature toggles
- Cache settings

### Basic Configuration

[](#basic-configuration)

```
return [
    'tables' => [
        'pages' => 'fpm_pages',
        'regions' => 'fpm_regions',
    ],

    'locales' => [
        'en' => 'English',
        'es' => 'Spanish',
        'fr' => 'French',
    ],

    'default_locale' => 'en',

    'seo' => [
        'enabled' => true,
        'fields' => [
            'title' => ['label' => 'SEO Title', 'maxLength' => 60],
            'description' => ['label' => 'SEO Description', 'maxLength' => 160],
        ],
    ],
];
```

Usage
-----

[](#usage)

### Creating Page Templates

[](#creating-page-templates)

Create a new page template:

```
php artisan filament-page-manager:make-template HomePage --type=page
```

This generates a template class in `app/PageTemplates/HomePageTemplate.php`:

```
