PHPackages                             peppestan/php-easy-token - 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. peppestan/php-easy-token

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

peppestan/php-easy-token
========================

An Easy yet effective Php Token generator and validator for user registration

00PHP

Since Sep 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/PeppeStan/PHPEasyToken)[ Packagist](https://packagist.org/packages/peppestan/php-easy-token)[ RSS](/packages/peppestan-php-easy-token/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

PhpEasyToken! 😀
===============

[](#phpeasytoken-)

Hi! I'm Peppe 👽 and this is my first release 🔥 , it's meant to Create 🆕 , Upload 📤 , Send 📧 and Check ✅ Tokens for such as User Registration validation or whatever! Feel free to send suggestions or issues! This is Still W.I.P.

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

[](#installation)

***Using Composer***

```
composer require peppestan/php-easy-token

```

***Using Release***Download the .zip files and put into the website folder

Requirements
============

[](#requirements)

PHPMailer /PHPMailer

Database
--------

[](#database)

The necessary connections are inside the file: **database.php** , make sure to edit with your credentials Also there is a ***.sql*** file into the folder ***/Database Files Example*** with the minimum required fields and tables to make the token system works

Usage
-----

[](#usage)

1. Make sure to Include **token.php** file into your php pages with: `include 'token.php';`
2. **TokenValidate.php** page get's the token variable and email variable with a GET request and handle those

function generate\_token(tokenlenght)
-------------------------------------

[](#function--generate_tokentokenlenght)

This function generates a token with the given lenght and returns the value ***Insert a minimum of 5 for lenght for safety reason***

function upload\_token(token,email)
-----------------------------------

[](#function--upload_tokentokenemail)

This function upload the token and email variables into the database

function mail\_token(token,email)
---------------------------------

[](#function--mail_tokentokenemail)

Sends an email to the user email with the generated token url - **maybe this still doesn't work properly**

function validate\_token(token,email)
-------------------------------------

[](#function--validate_tokentokenemail)

The most important function, checks if the token is expired (**time limit is 24hours**) and if it's not it validate the user and delete the users token.

function validate\_email(email)
-------------------------------

[](#function--validate_emailemail)

Validates if the email is real or is in the blacklist file (temporary emails) Returns true or false

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d2217ef6a71948632fc37e2dd44fa569bb685a89011a55de1ecc429f0869d4?d=identicon)[PeppeStan](/maintainers/PeppeStan)

---

Top Contributors

[![PeppeStan](https://avatars.githubusercontent.com/u/20712662?v=4)](https://github.com/PeppeStan "PeppeStan (17 commits)")

### Embed Badge

![Health badge](/badges/peppestan-php-easy-token/health.svg)

```
[![Health](https://phpackages.com/badges/peppestan-php-easy-token/health.svg)](https://phpackages.com/packages/peppestan-php-easy-token)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)[better-futures-studio/filament-local-logins

This is my package filament-local-logins

1334.6k](/packages/better-futures-studio-filament-local-logins)

PHPackages © 2026

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