PHPackages                             deegitalbe/server-authorization - 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. deegitalbe/server-authorization

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

deegitalbe/server-authorization
===============================

Simple server authorization for communicating between our projects.

v2.0.1(2mo ago)07.2k↓45%7MITPHPCI passing

Since Oct 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/deegitalbe/server-authorization)[ Packagist](https://packagist.org/packages/deegitalbe/server-authorization)[ RSS](/packages/deegitalbe-server-authorization/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (12)Used By (7)

Server authorization
====================

[](#server-authorization)

This package is used to authenticate **NON CRITICAL** requests between our applications.

Compatibility
-------------

[](#compatibility)

LaravelPackage8.x / 9.x1.x12.x2.xInstallation
------------

[](#installation)

```
composer require deegitalbe/server-authorization

```

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

[](#configuration)

### Environment

[](#environment)

You should define secret key in your `.env` file :

```
TRUSTUP_SERVER_AUTHORIZATION=your_secret_key

```

### Publish configuration

[](#publish-configuration)

If you want to have more control about configuration, publish it :

```
php artisan vendor:publish --provider="Deegitalbe\ServerAuthorization\Providers\ServerAuthorizationServiceProvider" --tag="config"

```

Middleware authenticating incoming request
------------------------------------------

[](#middleware-authenticating-incoming-request)

You can add this middleware to any route that should be protected :

```
Deegitalbe\ServerAuthorization\Http\Middleware\AuthorizedServer

```

Credential setting up outgoing request
--------------------------------------

[](#credential-setting-up-outgoing-request)

if you use [my client](https://github.com/henrotaym/laravel-api-client) to make requests, you can use this Credential to automatically authenticate your request :

```
Deegitalbe\ServerAuthorization\Credential\AuthorizedServerCredential

```

### Customizing credential

[](#customizing-credential)

If you need more control, extend credential this way :

```
use Henrotaym\LaravelApiClient\Contracts\RequestContract;
use Deegitalbe\ServerAuthorization\Credential\AuthorizedServerCredential;

class  MyCustomCredential  extends  AuthorizedServerCredential  {
	/**
	* Preparing request.
	*
	* @param  RequestContract $request
	* @return  void
	*/
	public  function  prepare(RequestContract  &$request)
	{
		parent::prepare($request);
		// your custom code here...
	}
}

```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance83

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~316 days

Recently: every ~395 days

Total

6

Last Release

84d ago

Major Versions

v1.2.0 → v2.0.02026-02-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24230736?v=4)[Mathieu Henrotay](/maintainers/henrotaym)[@henrotaym](https://github.com/henrotaym)

---

Top Contributors

[![henrotaym](https://avatars.githubusercontent.com/u/24230736?v=4)](https://github.com/henrotaym "henrotaym (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deegitalbe-server-authorization/health.svg)

```
[![Health](https://phpackages.com/badges/deegitalbe-server-authorization/health.svg)](https://phpackages.com/packages/deegitalbe-server-authorization)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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