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

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

wildcats1369/auth
=================

Laravel Package for api authentication

00PHP

Since Oct 10Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Installation
============

[](#installation)

Install authenticator via composer
----------------------------------

[](#install-authenticator-via-composer)

```
composer require wildcats1369/auth

```

Add the middleware in app/Http/Kernel.php
-----------------------------------------

[](#add-the-middleware-in-apphttpkernelphp)

```
protected $routeMiddleware = [
    // Other middleware
    'jwt.auth' => \wildcats1369\auth\Http\Middleware\JWTMiddleware::class,
    'sig.auth' => \wildcats1369\auth\Http\Middleware\SignatureMiddleware::class,
];

```

Make Filament Login generate access token
-----------------------------------------

[](#make-filament-login-generate-access-token)

### Publish Filament Config File

[](#publish-filament-config-file)

```
php artisan vendor:publish --tag=filament-config

```

### Publish Migration

[](#publish-migration)

```
php artisan vendor:publish --tag=migration

```

### Update auth setting

[](#update-auth-setting)

`config/filament.php`

```
'auth' => [
    'pages' => [
        'login' => \wildcats1369\auth\Http\Controllers\Login::class,
    ],
],

```

Usage
=====

[](#usage)

Signature Generation (Signature Auth)
-------------------------------------

[](#signature-generation-signature-auth)

1. Sort the keys of the request Ascending and concat the values in that order
2. Make sure timestamp field is present and is not above 10 seconds ago.
3. Add the private\_key at the end of the signature string
4. Apply SHA32 encryption and send as a header x-signature
5. add your public\_key to your x-api-key header

Ex:

```
POST https://devtech.local/auth/login
Network
Request Headers
x-signature: 397fcdb1bab47bc1bdf3527fbba4306424108ddbb1c5a63093ead799ec05a38b
Content-Type: application/json
x-api-key: 456
User-Agent: PostmanRuntime/7.42.0
Accept: */*
Postman-Token: 5819a93d-a76b-45fc-81f6-bc403175aac3
Host: devtech.local
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 60
Request Body
{"username":"admin","password":"ABC","timestamp":1727840876}
Private Key: 123
Public Key: 456

```

### In this case the signature string will be

[](#in-this-case-the-signature-string-will-be)

Signature String: ABC1727840339admin123

x-signature: 397fcdb1bab47bc1bdf3527fbba4306424108ddbb1c5a63093ead799ec05a38b

x-api-key: 456

Postman Script for testing Signature Auth Api
---------------------------------------------

[](#postman-script-for-testing-signature-auth-api)

```
// Import the crypto-js library
const CryptoJS = require('crypto-js');

// Get the request data
let requestData = pm.request.body.raw;
let jsonData = JSON.parse(requestData);
jsonData['timestamp'] = Math.floor(Date.now() / 1000);
// Update the request body with the timestamp
pm.request.body.update(JSON.stringify(jsonData));

// Sort the data by key
let sortedKeys = Object.keys(jsonData).sort();
pm.globals.get("variable_key");
let sortedData = {};
sortedKeys.forEach(key => {
    sortedData[key] = jsonData[key];
});

// Create the signature string
let sigStr = '';
sortedKeys.forEach(key => {
    sigStr += sortedData[key];
});
sigStr += pm.environment.get('public_key');
sigStr += pm.environment.get('private_key'); // Assuming you have stored your private key in an environment variable
console.log(sigStr)
// Generate the hash
let hash = CryptoJS.SHA256(sigStr).toString(CryptoJS.enc.Hex);

// Set the hash to an environment variable
pm.environment.set('signature', hash);

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b2d8992649655e04c49d2fca2aaae8ee3a953499b507d7bfccf8b88496854d3?d=identicon)[wildcats1369](/maintainers/wildcats1369)

### Embed Badge

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

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

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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