PHPackages                             authmagic/authmagic-timerange-stateless-laravel-middleware - 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. authmagic/authmagic-timerange-stateless-laravel-middleware

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

authmagic/authmagic-timerange-stateless-laravel-middleware
==========================================================

Authmagic timerange stateless express middleware

v0.0.3(6y ago)036PHPCI failing

Since Sep 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/authmagic/authmagic-timerange-stateless-laravel-middleware)[ Packagist](https://packagist.org/packages/authmagic/authmagic-timerange-stateless-laravel-middleware)[ Docs](https://github.com/authmagic/authmagic-timerange-stateless-laravel-middleware)[ RSS](/packages/authmagic-authmagic-timerange-stateless-laravel-middleware/feed)WikiDiscussions master Synced 4w ago

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

[![](https://github.com/authmagic/authmagic/raw/master/docs/images/logo.png?raw=true)](https://github.com/authmagic/authmagic/blob/master/docs/images/logo.png?raw=true)

authmagic-timerange-stateless-laravel-middleware
================================================

[](#authmagic-timerange-stateless-laravel-middleware)

Laravel facade for verification status of token recieved from Authorization header generated by [authmagic](https://github.com/authmagic/authmagic) authentication core.

How to install
--------------

[](#how-to-install)

```
$ composer require authmagic/authmagic-timerange-stateless-laravel-middleware
```

Publish the configurations
--------------------------

[](#publish-the-configurations)

Run this on the command line from the root of your project for copy authmagic.php config to laravel config folder:

```
$ php artisan vendor:publish --provider="Authmagic\AuthmagicLaravel\AuthmagicServiceProvider"

```

Usage
-----

[](#usage)

Create middleware with handle method.

```
    public function handle($request, Closure $next)
    {
        $token = Authmagic::auth($request);

        if ($token) {
            // ...

            return $next($request);
        }

        return response('Unauthorized action', Response::HTTP_FORBIDDEN);
    }
```

Licence
-------

[](#licence)

authmagic-timerange-stateless-laravel-middleware is [MIT licensed](./LICENSE).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~200 days

Total

3

Last Release

2480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15706365?v=4)[megarat](/maintainers/megarat)[@megarat](https://github.com/megarat)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/authmagic-authmagic-timerange-stateless-laravel-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/authmagic-authmagic-timerange-stateless-laravel-middleware/health.svg)](https://phpackages.com/packages/authmagic-authmagic-timerange-stateless-laravel-middleware)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121269.8k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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