PHPackages                             talha/lumen-jwt-hashing - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. talha/lumen-jwt-hashing

ActiveProject[Utility &amp; Helpers](/categories/utility)

talha/lumen-jwt-hashing
=======================

Random hash generator api.

0.0.1(6y ago)071PHPPHP &gt;=7.0.33

Since Jun 28Pushed 6y agoCompare

[ Source](https://github.com/MKhan777/hashing)[ Packagist](https://packagist.org/packages/talha/lumen-jwt-hashing)[ RSS](/packages/talha-lumen-jwt-hashing/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (8)Versions (1)Used By (1)

---

Getting started
===============

[](#getting-started)

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

[](#installation)

Please check the official Lumen installation guide for server requirements before you start. [Official Documentation](https://lumen.laravel.com/docs/5.5/installation)

Download via composer
---------------------

[](#download-via-composer)

Run the following command in your CMD :

```
	composer create-project talha/lumen-jwt-hashing

```

Donwload Via Github
-------------------

[](#donwload-via-github)

Clone the repository form Github

```
git clone git@github.com:MKhan777/hashing.git

```

Switch to the repo folder

```
cd hashing

```

Install all the dependencies using composer

```
composer install

```

Copy the example env file (from lumen sample project.The env file is not pre included in the project)and make the required configuration changes in the .env file

```
cp .env.example .env

```

Generate a new application key

Since Lumen doesn't have the `php artisan key:generate` command. You can create it online through any website or create it yourself.

Generate a random App key. Generate a random JWT authentication secret key

Run the database migrations (**Set the database connection in .env before migrating**)

```
php artisan migrate

```

Start the local development server

```
php -S localhost:8000 -t public

```

You can now access the server at

**TL;DR command list**

```
git clone git@github.com:MKhan777/hashing.git
cd lumen-jwt
composer install
cp .env.example .env

```

**Make sure you set the correct database connection information before running the migrations** [Environment variables](#environment-variables)

```
php artisan migrate
php -S localhost:8000 -t public

```

Database seeding
----------------

[](#database-seeding)

**Populate the database with seed data with relationships which includes users, articles, comments, tags, favorites and follows. This can help you to quickly start testing the api or couple a frontend and start using it with ready content.**

Run the database seeder and you're done

```
php artisan db:seed

```

***Note*** : It's recommended to have a clean database before seeding. You can refresh your migrations at any point to clean the database by running the following command

```
php artisan migrate:refresh

```

\*\* Run composer dump autoload for files autoloading

```
composer dump-autoload

```

API Specification
-----------------

[](#api-specification)

---

Code overview
=============

[](#code-overview)

The code has three basic endpoints get(hash),post(login),post(\\register). Use the Postman API builder interface to hit on these urls

```
	/register
	provide parameters
		{
		"name"  : "sample",
		"email" : "sample@sample.com",
		"password" : "sample123"
		}

```

You will get a token in response.

```
		/login
		provide parameters
		{

		"email" : "sample@sample.com",
		"password" : "sample123"
		}

```

You will get a token in response.

```
	/hash
	provide parameters
	{
		token : "xyzxvyzsvyz"
	}

```

The same token that has been generated by login or register can be used here for hitting the output will be a hash that,ll be stored in log file

Dependencies
------------

[](#dependencies)

-
- \[firebase/php-jwt\] - For authentication using JSON Web Tokens
- \[fzaninotto/faker\] - For fake model generating 10 users (testing)
- \[phpunit/phpunit\] - For unit tests

Environment variables
---------------------

[](#environment-variables)

- `.env` - Environment variables can be set in this file

***Note*** : You can quickly set the database information and other variables in this file and have the application fully working.

---

Testing API
===========

[](#testing-api)

Run the Lumen development server

```
php -S localhost:8000 -t public

```

The api can now be accessed at

```
http://localhost:8000/api

```

Request headers

**Required****Key****Value**YesContent-Typeapplication/jsonYesX-Requested-WithXMLHttpRequestOptionalAuthorizationToken {JWT}Refer the [api specification](#api-specification) for more info.

---

Authentication
==============

[](#authentication)

This applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the `Authorization` header with `Token` scheme. The JWT authentication middleware handles the validation and authentication of the token. Please check the following sources to learn more about JWT.

-
-

---

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8169ba1183cb3049e2ada748e061b320f96d14a5bac38a328752470bb2b58495?d=identicon)[MKhan777](/maintainers/MKhan777)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/talha-lumen-jwt-hashing/health.svg)

```
[![Health](https://phpackages.com/badges/talha-lumen-jwt-hashing/health.svg)](https://phpackages.com/packages/talha-lumen-jwt-hashing)
```

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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