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

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

afea/filament-hero
==================

Hero banner module for the Afea Filament CMS package ecosystem: headline, description, badge, feature bullets, CTA and background image.

v0.1.0(3mo ago)017↓50%1MITPHPPHP ^8.4

Since Apr 21Pushed 3mo agoCompare

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

READMEChangelogDependencies (12)Versions (2)Used By (1)

afea/filament-hero
==================

[](#afeafilament-hero)

Hero banner module for the Afea Filament CMS package ecosystem.

Ships:

- `Hero` model — headline + description + optional badge + CTA + feature bullets + image
- Multiple heroes supported (for A/B testing, localized variants, seasonal campaigns)
- Reorderable Filament v4 `HeroResource` with a feature `Repeater`
- `HeroPlugin` + `afea:install:hero`

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

[](#installation)

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

Register in `AdminPanelProvider`:

```
->plugin(\Afea\Cms\Hero\Filament\HeroPlugin::make())
```

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

[](#three-common-scenarios)

### 1. Render the primary hero on the home page

[](#1-render-the-primary-hero-on-the-home-page)

```
use Afea\Cms\Hero\Models\Hero;

$hero = Hero::query()->active()->ordered()->first();

$hero?->title;
$hero?->description;
$hero?->featureList();        // sorted [{icon, title, order}, ...]
$hero?->imageUrl('preview');  // webp preview
```

### 2. Localize or A/B test heroes

[](#2-localize-or-ab-test-heroes)

Run multiple active heroes with distinct `order` values and pick one on the front-end based on session/locale:

```
$heroes = Hero::query()->active()->ordered()->get();
$hero = $heroes->firstWhere('description', 'like', "%{$locale}%") ?? $heroes->first();
```

### 3. Override the model with a featured scope

[](#3-override-the-model-with-a-featured-scope)

```
class Hero extends \Afea\Cms\Hero\Models\Hero
{
    public function scopeForCampaign($q, string $utm)
    {
        return $q->active()->where('cta_url', 'like', "%utm_campaign={$utm}%");
    }
}
```

```
'models' => ['hero' => \App\Models\Hero::class],
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance82

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

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

94d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12434217?v=4)[Ahmet Özrahat](/maintainers/ahmetozrahat)[@ahmetozrahat](https://github.com/ahmetozrahat)

---

Top Contributors

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

---

Tags

laravelcmsfilamentheroafea

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M246](/packages/laravel-ai)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[promethys/revive

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

163.1k1](/packages/promethys-revive)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k5](/packages/tapp-filament-form-builder)

PHPackages © 2026

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