PHPackages                             afea/filament-cms-core - 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-cms-core

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

afea/filament-cms-core
======================

Shared infrastructure for the Afea Filament CMS package ecosystem: SEO metadata, polymorphic forms, routing strategy, Filament plugin base.

v0.1.0(1mo ago)017↑328.6%13MITPHPPHP ^8.4

Since Apr 21Pushed 1mo agoCompare

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

READMEChangelogDependencies (13)Versions (2)Used By (13)

afea/filament-cms-core
======================

[](#afeafilament-cms-core)

Shared infrastructure for the Afea Filament CMS package ecosystem.

Everything a modular CMS needs, without the modules themselves:

- `SeoMetadata` model + `HasSeo` / `InteractsWithSeoForm` traits + reusable Filament `SeoSchema`
- Polymorphic forms: `Form`, `FormQuestion`, `FormQuestionOption`, `FormSubmission`, `FormSubmissionAnswer` + `HasForms` trait + attachable via the `formables` pivot
- `RoutingStrategy` enum (`slug` / `resource` / `localized`) + `RouteRegistrar`
- `BaseCmsPlugin` abstract class every first-party module extends
- Laravel Prompts-backed `afea:install:core` command

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

[](#installation)

```
composer require afea/filament-cms-core
php artisan afea:install:core
```

The installer publishes `config/afea-cms.php`, publishes translations under `lang/vendor/afea-cms`, and runs the core migrations.

Configuration keys
------------------

[](#configuration-keys)

```
return [
    'panel' => 'admin',
    'models' => [
        'seo_metadata' => \Afea\Cms\Core\Models\SeoMetadata::class,
        'form' => \Afea\Cms\Core\Models\Form::class,
        // ...
    ],
    'media' => [
        'disk' => env('AFEA_CMS_MEDIA_DISK', 'public'),
        'private_disk' => env('AFEA_CMS_PRIVATE_DISK', 'local'),
    ],
    'seo' => [
        'sitemap_cache_key' => 'sitemap:urls',
    ],
    'forms' => [
        'submissions_disk' => env('AFEA_CMS_SUBMISSIONS_DISK', 'local'),
        'temporary_url_ttl_minutes' => 60,
    ],
];
```

Model override
--------------

[](#model-override)

Extend any shipped model and bind the subclass in configuration:

```
// app/Models/SeoMetadata.php
namespace App\Models;

class SeoMetadata extends \Afea\Cms\Core\Models\SeoMetadata
{
    public function scopeIndexable($query)
    {
        return $query->where('noindex', false);
    }
}
```

```
// config/afea-cms.php
'models' => [
    'seo_metadata' => \App\Models\SeoMetadata::class,
],
```

Every internal relation resolves the class from config, so relationships keep working across the package ecosystem.

Common scenarios
----------------

[](#common-scenarios)

### Add SEO to a model

[](#add-seo-to-a-model)

```
use Afea\Cms\Core\Concerns\HasSeo;

class Page extends Model
{
    use HasSeo;
}
```

On the Filament `EditPage`:

```
use Afea\Cms\Core\Concerns\InteractsWithSeoForm;
use Afea\Cms\Core\Filament\Schemas\SeoSchema;

class EditPage extends EditRecord
{
    use InteractsWithSeoForm;

    protected function getFormSchema(): array
    {
        return [
            // ...model fields
            Tabs\Tab::make('SEO')->schema(SeoSchema::make()),
        ];
    }
}
```

### Attach a CMS-defined form to a content model

[](#attach-a-cms-defined-form-to-a-content-model)

```
use Afea\Cms\Core\Concerns\HasForms;

class CustomPage extends Model
{
    use HasForms;
}

$page = CustomPage::first();
$page->attachForm($contactForm);
$page->forms; // Collection
```

### Register a public-facing route using the configured strategy

[](#register-a-public-facing-route-using-the-configured-strategy)

```
use Afea\Cms\Core\Enums\RoutingStrategy;
use Afea\Cms\Core\Routing\RouteRegistrar;

RouteRegistrar::register(
    strategy: RoutingStrategy::from(config('afea-blog.routing_strategy', 'resource')),
    prefix: 'blog',
    slugHandler: [BlogController::class, 'show'],
    indexHandler: [BlogController::class, 'index'],
);
```

Testing
-------

[](#testing)

From the monorepo root:

```
./vendor/bin/pest --group=core
```

Or within the package:

```
composer install
./vendor/bin/pest
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community15

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

laravelcmsFormsseofilamentafea

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  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)[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[tapp/filament-form-builder

User facing form builder using Filament components

141.9k2](/packages/tapp-filament-form-builder)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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