PHPackages                             ffhs/filament-package\_ffhs\_approvals - 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. [Admin Panels](/categories/admin)
4. /
5. ffhs/filament-package\_ffhs\_approvals

ActiveLibrary[Admin Panels](/categories/admin)

ffhs/filament-package\_ffhs\_approvals
======================================

This is my package filament-package\_ffhs\_approvals

2.1.2(4mo ago)71.0k—4.4%1MITPHPPHP ^8.2CI passing

Since Jul 2Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/ffhs/filament-package_ffhs_approvals)[ Packagist](https://packagist.org/packages/ffhs/filament-package_ffhs_approvals)[ Docs](https://github.com/ffhs/filament-package_ffhs_approvals)[ RSS](/packages/ffhs-filament-package-ffhs-approvals/feed)WikiDiscussions release/2.x Synced 2d ago

READMEChangelog (6)Dependencies (15)Versions (8)Used By (0)

Approvals Overview
==================

[](#approvals-overview)

This package allows you to easily implement approval workflows in your **Filament-powered** Laravel application. You can define approval logic per model, specify who can approve (based on roles, permissions, or user logic), and expose powerful UI actions using Filament’s `Infolist` components.

[![Latest Version on Packagist](https://camo.githubusercontent.com/0caeaf84ebfd7fedf9eeb6d665c3ecbd69c68c7653c3e5858e1919f6af99194f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666668732f66696c616d656e742d7061636b6167655f666668735f617070726f76616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ffhs/filament-package_ffhs_approvals)[![Total Downloads](https://camo.githubusercontent.com/d4996c5396df8b7d3b91339606923cec846d3416ef3a08385004dcbde8da18b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666668732f66696c616d656e742d7061636b6167655f666668735f617070726f76616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ffhs/filament-package_ffhs_approvals)

Features:
---------

[](#features)

- ✅ Native PHP Enums for status handling
- 🔁 Define multiple approval flows per model
- 👥 Role-, user-, and permission-based approval logic
- 🧩 Seamless integration with Filament Actions and Forms
- 🎨 Customize icons, labels, tooltips, colors per status
- 🛡️ Control button visibility and approval flow states based on business logic
- 🔔 Built-in confirmation prompts and notifications
- 🧱 Fully expandable

---

Versions
--------

[](#versions)

Filament VersionPackage Version3.x^1.0.04.x^2.0.05.x------

Documentation
-------------

[](#documentation)

**You can find the full documentation [here](https://ffhs.github.io/filament-package_ffhs_approvals/).**

---

Preview
-------

[](#preview)

(The lower section are the Approvals)

[![](images/preview-image-1.png)](images/preview-image-1.png)

[![](images/preview-image-2.png)](images/preview-image-2.png)

---

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

[](#installation)

You can install the package via composer:

```
composer require ffhs/filament-package_ffhs_approvals
```

You can publish the config file with:

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

You can publish and run the migrations with:

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

---

Usage
-----

[](#usage)

### 1. Define Approval Status Enum

[](#1-define-approval-status-enum)

Create a PHP Enum implementing `HasApprovalStatuses`:

```
use Ffhs\Approvals\Contracts\HasApprovalStatuses;

enum MyApprovalStatus: string  implements HasApprovalStatuses
{
    case APPROVED = 'approved';
    case INCOMPLETE = 'incomplete';
    case DENIED = 'denied';

    public static function getApprovedStatuses(): array
    {
        return [self::APPROVED];
    }

    public static function getDeniedStatuses(): array
    {
        return [self::DENIED];
    }

    public static function getPendingStatuses(): array
    {
        return [self::INCOMPLETE];
    }
}
```

---

### 2. Define Approval Flow in Model

[](#2-define-approval-flow-in-model)

Implement `Approvable` and use the `HasApprovals` trait:

```
namespace App\Models;

class MyModel extends Model implements Approvable{
	use HasApprovals;

	public function getApprovalFlows(): array
	{
		return [
			'management_approved' => SimpleApprovalFlow::make()
				->approvalStatus(ApplicationApprovalStatus::cases())
				->aprovalBy([
					SimpleApprovalBy::make('employee')
						->any(),

					SimpleApprovalBy::make('manager')
						->permission('can_approve_for_manager'),

					SimpleApprovalBy::make('hr')
						->role('hr_role')
						->atLeast(2)

				])
		];
	}
}
```

---

### 3. Basic Filament Action Usage

[](#3-basic-filament-action-usage)

Render the approval action in your Filament resource or view:

```
// MyModelView.php

ApprovalActions::make('managment_aproved')
```

---

Testing
-------

[](#testing)

```
composer install
./vendor/bin/testbench vendor:publish --tag="filament-package_ffhs_custom_forms-migrations"
./vendor/bin/testbench workbench:build
./vendor/bin/pest test
```

---

Credits
-------

[](#credits)

- [Kirschbaum Development Group](https://github.com/kirschbaum-development)

---

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance76

Regular maintenance activity

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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

Every ~47 days

Recently: every ~54 days

Total

6

Last Release

128d ago

Major Versions

1.0.1 → 2.0.02026-02-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/073a310596cb20c3d46570f8095fcf5f19e3e37b5464577ff40cc22fa2ac5b73?d=identicon)[ffhs](/maintainers/ffhs)

---

Top Contributors

[![Odion-DS](https://avatars.githubusercontent.com/u/93391784?v=4)](https://github.com/Odion-DS "Odion-DS (249 commits)")[![jeanluc-bittel](https://avatars.githubusercontent.com/u/186709743?v=4)](https://github.com/jeanluc-bittel "jeanluc-bittel (11 commits)")[![mgballou](https://avatars.githubusercontent.com/u/125108218?v=4)](https://github.com/mgballou "mgballou (5 commits)")[![adammparker](https://avatars.githubusercontent.com/u/5186174?v=4)](https://github.com/adammparker "adammparker (1 commits)")[![mxm1070](https://avatars.githubusercontent.com/u/11588575?v=4)](https://github.com/mxm1070 "mxm1070 (1 commits)")[![TeselCoding](https://avatars.githubusercontent.com/u/147048947?v=4)](https://github.com/TeselCoding "TeselCoding (1 commits)")

---

Tags

laravelkirschbaum-developmentffhsfilament-package\_ffhs\_approvals

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ffhs-filament-package-ffhs-approvals/health.svg)

```
[![Health](https://phpackages.com/badges/ffhs-filament-package-ffhs-approvals/health.svg)](https://phpackages.com/packages/ffhs-filament-package-ffhs-approvals)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[slimani/filament-media-manager

A media manager plugin for Filament.

126.9k](/packages/slimani-filament-media-manager)[waguilar33/filament-guardian

Role and permission management for Filament

162.3k](/packages/waguilar33-filament-guardian)

PHPackages © 2026

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