PHPackages                             tyler36/isadmin - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tyler36/isadmin

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

tyler36/isadmin
===============

A simple way to define an administator, with a auth.admin middleware

0.2(6y ago)042MITPHP

Since Mar 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tyler36/isAdmin)[ Packagist](https://packagist.org/packages/tyler36/isadmin)[ Docs](https://github.com/tyler36/isadmin)[ RSS](/packages/tyler36-isadmin/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

isAdmin
=======

[](#isadmin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/da7fdd8ff49583ce3f3e4c1ed71cd5863456c54d7f6b75cb4eadc65aec073db0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74796c657233362f697361646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tyler36/isadmin)[![Total Downloads](https://camo.githubusercontent.com/f60ee20b837b469abf3707a378c7f9704a5c7b6cbe35630c39680dc0c9091087/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74796c657233362f697361646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tyler36/isadmin)[![Build Status](https://camo.githubusercontent.com/4abafb22602867dc0903d0dffa595450cc69b0257c0bbc2219a4c1ea247c65b7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74796c657233362f697361646d696e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tyler36/isadmin)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require tyler36/isadmin
```

Update your `.ENV` file to include the administators email. Use a comma-separated string if there are multuple accounts.

```
AUTH_ADMINS_ADMINISTRATORS=admin@example.com

```

The default configuration might not be suitable for everyone. To change it, publish the configuration using the following command.

```
$ php artiasn vendor:publish --provider=Tyler36\isAdmin\isAdminServiceProvider
```

Usage: Middleware
-----------------

[](#usage-middleware)

1. Register the middleware in the `app/Http/Kernel.php`. You can change the middleware short name by replacing `auth.admin`.

```
    protected $routeMiddleware = [
        ...
        'auth.admin'    => \tyler36\isAdmin\isAdminMiddleware::class,
        ...
    ];
```

Usage: Trait
------------

[](#usage-trait)

1. Add the trait to your user model

```
class User extends Authenticatable
{
    use Tyler36\isAdmin\isAdminTrait;
    ....
```

2. You can know verify users on a model

```
$user = new User();

// Check if user is an admin
$user->isAdmin();

// Check if user is verified
$user->isVerified();

// Check if another user model ($someone) is an admin
$user->isAdmin($someone);
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [author name](https://github.com/tyler36)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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 ~3 days

Total

2

Last Release

2262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c68f48588d57835c170cde02444307a450b98cfab07c9674094b881545c13b76?d=identicon)[tyler36](/maintainers/tyler36)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![tyler36](https://avatars.githubusercontent.com/u/7234392?v=4)](https://github.com/tyler36 "tyler36 (5 commits)")

---

Tags

laravellaravel-packagelaravelisAdmin

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tyler36-isadmin/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42542.0M544](/packages/socialiteproviders-manager)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5682.0M15](/packages/directorytree-ldaprecord-laravel)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[olssonm/l5-very-basic-auth

Laravel stateless HTTP basic auth without the need for a database

1662.5M1](/packages/olssonm-l5-very-basic-auth)

PHPackages © 2026

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