PHPackages                             afea/filament-pages - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. afea/filament-pages

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

afea/filament-pages
===================

Custom pages module for the Afea Filament CMS package ecosystem: rich CMS pages with optional table of contents and polymorphic form attachment.

v0.1.0(1mo ago)014↑445.5%MITPHPPHP ^8.4

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/AfeaSoftware/filament-pages)[ Packagist](https://packagist.org/packages/afea/filament-pages)[ RSS](/packages/afea-filament-pages/feed)WikiDiscussions main Synced 1w ago

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

afea/filament-pages
===================

[](#afeafilament-pages)

Custom pages module for the Afea Filament CMS package ecosystem.

Ships:

- `CustomPage` model — rich content, SEO, optional table of contents, attachable form
- Filament v4 `CustomPageResource` (form + table + pages)
- `PagesPlugin` — register in your `AdminPanelProvider`
- Public-facing routes registered per the configured routing strategy (slug / resource / localized)
- `PageController` + overridable Blade views with sticky TOC sidebar
- `afea:install:pages` — Laravel Prompts installer

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

[](#installation)

```
composer require afea/filament-pages
php artisan afea:install:pages
```

Then in your `AdminPanelProvider`:

```
->plugin(\Afea\Cms\Pages\Filament\PagesPlugin::make())
```

The table of contents
---------------------

[](#the-table-of-contents)

Each page has an `include_toc` toggle. Enabling it:

1. parses `content` for `h2` and `h3` tags,
2. injects slugged `id` attributes onto each heading,
3. renders a nested list in the shipped `show` view.

Override tags via `afea-pages.toc.tags`. Build your own UI with:

```
$toc = $page->toc();
$tree = $toc->tree();        // nested array of id/text/children
$html = $toc->html();         // content with ids injected
```

Three common scenarios
----------------------

[](#three-common-scenarios)

### 1. Switch routing strategy

[](#1-switch-routing-strategy)

Set `AFEA_PAGES_ROUTING_STRATEGY=resource` + `AFEA_PAGES_PREFIX=pages` — URLs move from `/about` to `/pages/about`. No data changes.

### 2. Override the CustomPage model

[](#2-override-the-custompage-model)

```
class CustomPage extends \Afea\Cms\Pages\Models\CustomPage
{
    public function scopePublished(Builder $q): Builder
    {
        return $q->active()->whereNotNull('system_name');
    }
}
```

```
'models' => ['custom_page' => \App\Models\CustomPage::class],
```

### 3. Render your own theme

[](#3-render-your-own-theme)

```
php artisan vendor:publish --tag=afea-pages-views
```

Edit `resources/views/vendor/afea-pages/show.blade.php`. The template receives `$page`, `$seo`, `$content` (with TOC ids already injected) and `$toc` (nested array).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/090664afed2a3f014aa9cc4d2225925052fbc30e1995ebb9898272dc77a5b45f?d=identicon)[ahmetozrahat](/maintainers/ahmetozrahat)

---

Top Contributors

[![ahmetozrahat](https://avatars.githubusercontent.com/u/12434217?v=4)](https://github.com/ahmetozrahat "ahmetozrahat (2 commits)")

---

Tags

laravelcmspagesfilamentafea

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/afea-filament-pages/health.svg)

```
[![Health](https://phpackages.com/badges/afea-filament-pages/health.svg)](https://phpackages.com/packages/afea-filament-pages)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[promethys/revive

A 'RecycleBin' page where users can restore or delete permanently soft-deleted models.

162.5k](/packages/promethys-revive)[tapp/filament-form-builder

User facing form builder using Filament components

141.9k2](/packages/tapp-filament-form-builder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
