PHPackages                             adamhut/approvable - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. adamhut/approvable

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

adamhut/approvable
==================

A Simple package to put a approval or denial to model

0.1.0(7y ago)03MITPHPPHP ^7.1

Since Mar 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/adamhut/approvable)[ Packagist](https://packagist.org/packages/adamhut/approvable)[ Docs](https://github.com/adamhut/approvable)[ RSS](/packages/adamhut-approvable/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Simple flag a model as approve or deny
======================================

[](#simple-flag-a-model-as-approve-or-deny)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ff76deee3da5c0d4dd0f6e1c706a09e3e19c3856bff12b6b20ce82639431d243/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d6875742f617070726f7661626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adamhut/approvable)[![Build Status](https://camo.githubusercontent.com/689fd614873cbbc35ddbc41ed1a85fb2ce83dbb9c5f84585edbf67aefda6f905/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6164616d6875742f617070726f7661626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/adamhut/approvable)[![Quality Score](https://camo.githubusercontent.com/9b4fd5bdaf24b8a3fdaa58759fc7b153027d279dded6e75788a63c2ff147dac7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164616d6875742f617070726f7661626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adamhut/approvable)[![Total Downloads](https://camo.githubusercontent.com/48281683c73285239c061befdfe9b85199e2edb4bedf02427806ea3ac62da373/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d6875742f617070726f7661626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adamhut/approvable)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require adamhut/approvable
```

Usage
-----

[](#usage)

```
php artisan vendor:publish --provider="Adamhut\Approvable\ApprovableServiceProvider" --tag="migrations"

php artisan migrate
```

First, add the Adamhut\\Approvable\\Traits\\Approvable trait to your User model(s):

```
use Illuminate\Foundation\Auth\User as Authenticatable;
use Adamhut\Approvable\Traits\Approvable;

class User extends Authenticatable
{
    use Approvable;

    // ...
}

$user->isPending(); //true
$user->isApproved() //false
$user->isDenied();  //false

$user->approve();

$user->isApproved() //true
$user->isPending(); //false
$user->isDenied(); //false

$user->deny();
$user->isDenied()   //true
$user->isApproved() //false
$user->isPending(); //false
```

### Command

[](#command)

We alse provide a summery command

```
php artisan approval:summary
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Adam Huang](https://github.com/adamhut)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b18d6b5265bd37b164d4f90b4269fb6629e9eb1a7757852b6ec17b36a4e3e07?d=identicon)[adamhut](/maintainers/adamhut)

---

Top Contributors

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

---

Tags

adamhutapprovable

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adamhut-approvable/health.svg)

```
[![Health](https://phpackages.com/badges/adamhut-approvable/health.svg)](https://phpackages.com/packages/adamhut-approvable)
```

###  Alternatives

[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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