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(1mo ago)014↑445.5%MITPHPPHP ^8.4

Since Apr 21Pushed 1mo 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 1w ago

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

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

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

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

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

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[tapp/filament-form-builder

User facing form builder using Filament components

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

Filament Saas for A2Insights

171.5k](/packages/a2insights-filament-saas)

PHPackages © 2026

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