PHPackages                             myparcelcom/auth-module - 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. myparcelcom/auth-module

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

myparcelcom/auth-module
=======================

Package for validating a JWT token and checking the contained scopes

v3.0.0(3mo ago)031.3k↓50%PHPPHP &gt;=8.2CI failing

Since Apr 1Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/MyParcelCOM/auth-module)[ Packagist](https://packagist.org/packages/myparcelcom/auth-module)[ Docs](https://www.myparcel.com)[ RSS](/packages/myparcelcom-auth-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (34)Used By (0)

MyParcel.com Auth Module
========================

[](#myparcelcom-auth-module)

Shared library with Authentication modules for validating JWT authorization headers and checking its scopes

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

[](#installation)

The library uses Docker to run php and composer. To install Docker, follow the steps in the [documentation](https://docs.myparcel.com/development/#docker).

### Setup

[](#setup)

To setup the project, run:

```
./mp.sh setup
```

### Providers

[](#providers)

Add a provider to set the Public Key

```
$this->app->singleton(JwtAuthenticator::class, function () {
    return (new JwtAuthenticator())->setPublicKey(config('auth.public_key'));
});

```

Commands
--------

[](#commands)

The following commands are available for development:

`./mp.sh composer ` - Run composer inside the container.

`./mp.sh php ` - Run any command on the php container.

`./mp.sh test ` - Run the PHPUnit tests.

License
-------

[](#license)

All software by MyParcel.com is licensed under the [MyParcel.com general terms and conditions](https://www.myparcel.com/terms).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

31

Last Release

101d ago

Major Versions

v1.4.1 → v2.0.02022-11-07

v2.3.9 → v3.0.02026-02-06

PHP version history (5 changes)v1.0.0PHP &gt;=7.1

v1.3.2PHP &gt;=7.3

v1.4.0PHP &gt;=7.4

v2.0.0PHP &gt;=8.0

v2.1.1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3841efa190ba5131014f8855131e3d38ef5ccd57c51000966348108e63c83612?d=identicon)[myparcelcom](/maintainers/myparcelcom)

---

Top Contributors

[![M4tini](https://avatars.githubusercontent.com/u/4649537?v=4)](https://github.com/M4tini "M4tini (57 commits)")[![zwaans](https://avatars.githubusercontent.com/u/83594488?v=4)](https://github.com/zwaans "zwaans (18 commits)")[![yoan-myparcel](https://avatars.githubusercontent.com/u/46448148?v=4)](https://github.com/yoan-myparcel "yoan-myparcel (16 commits)")[![NickVries](https://avatars.githubusercontent.com/u/32866117?v=4)](https://github.com/NickVries "NickVries (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![nessy](https://avatars.githubusercontent.com/u/881554?v=4)](https://github.com/nessy "nessy (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/myparcelcom-auth-module/health.svg)

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

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[nl.idaas/openid-server

OpenID Connect server for PHP

47129.2k1](/packages/nlidaas-openid-server)

PHPackages © 2026

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