PHPackages                             alimwa/api-auth - 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. alimwa/api-auth

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

alimwa/api-auth
===============

A simple package that exposes endpoints for Token Based API authentication.

v1.0.6(3y ago)056[3 issues](https://github.com/AlimwaDev/api-auth/issues)MITPHPPHP ^8.0

Since Feb 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AlimwaDev/api-auth)[ Packagist](https://packagist.org/packages/alimwa/api-auth)[ Docs](https://github.com/alimwa/auth)[ RSS](/packages/alimwa-api-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (9)Used By (0)

Alimwa API Auth
===============

[](#alimwa-api-auth)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6dde8b9c0e043e448f3d8a2d3023a2cb90832d3b6ff5ec7dc71b3be9e82e4b44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c696d77612f6170692d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alimwa/api-auth)[![Total Downloads](https://camo.githubusercontent.com/96baa10817028a07bc21d21870c8a7d41da2b3f5a96f5806770b264c0d5c69aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c696d77612f6170692d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alimwa/api-auth)[![GitHub Actions](https://github.com/AlimwaDev/api-auth/actions/workflows/main.yml/badge.svg)](https://github.com/AlimwaDev/api-auth/actions/workflows/main.yml/badge.svg)

Thanks to Taylor the majority of use who handle API based authentication and authorisation now have it easy and through the sanctum package. However, the package only allows for the management of access tokens and the permissions on them which is why after implementing authentication endpoints based of off sanctum I have decided like any other dev to create my own package that I aim to use throughout all my APIs.

I am to start by supporting the latest version of Laravel and then creating other version to add support for more. I will be following the PSR12 standard for those who wish to contribute and help maintain this package.

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

[](#installation)

You can install the package via composer:

```
composer require alimwa/api-auth
```

Configuration
-------------

[](#configuration)

Once the package is installed you may run the following command to publish Sanctum bases resources.

```
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
```

Then migrate the database if it hasn't been already.

```
php artisan migrate
```

Usage
-----

[](#usage)

Once the package is installed you may run the following command view your new routes that you can access from SPAs and Mobile Apps.

```
php artisan route:list
```

Migrate

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### SecurityApp

[](#securityapp)

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

Credits
-------

[](#credits)

- [Lennon Mudenda](https://github.com/lennon-mudenda)
- [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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~2 days

Total

7

Last Release

1165d ago

### Community

Maintainers

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

---

Top Contributors

[![lennon-mudenda](https://avatars.githubusercontent.com/u/19418575?v=4)](https://github.com/lennon-mudenda "lennon-mudenda (64 commits)")

---

Tags

apiauthalimwa

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alimwa-api-auth/health.svg)

```
[![Health](https://phpackages.com/badges/alimwa-api-auth/health.svg)](https://phpackages.com/packages/alimwa-api-auth)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[benbjurstrom/cognito-jwt-guard

A laravel auth guard for JSON Web Tokens issued by Amazon AWS Cognito

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)

PHPackages © 2026

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