PHPackages                             siranta/phptoken - 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. siranta/phptoken

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

siranta/phptoken
================

Librería para generar token

v1.1(5y ago)015PHP

Since Jan 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/R-Tarrio/phptoken)[ Packagist](https://packagist.org/packages/siranta/phptoken)[ RSS](/packages/siranta-phptoken/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

phptoken
========

[](#phptoken)

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

[](#installation)

```
composer require siranta/phptoken

```

### Create token

[](#create-token)

```
	use siranta\phptoken;

	$json = [
		"init" => time(),
		"exp" => time() + 60*10, // Token validity time
		"data" => [
			"id" => 12345678
		]
	];

	$key = "25d55ad283aa400af464c76d713c07ad"; // Private key
	$tt = new phptoken($json, $key);

	echo $tt->encode();

```

### decrypt token

[](#decrypt-token)

```
$token = new phptoken(TOKEN, KEY);
echo $token->decode();

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1954d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66f46fadc439ffe3e451917025875ac8d49df694d924cb562795bb682160ef04?d=identicon)[R\_Tarrio](/maintainers/R_Tarrio)

---

Top Contributors

[![R-Tarrio](https://avatars.githubusercontent.com/u/32006856?v=4)](https://github.com/R-Tarrio "R-Tarrio (2 commits)")

### Embed Badge

![Health badge](/badges/siranta-phptoken/health.svg)

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

PHPackages © 2026

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