PHPackages                             dannyvilla/simtoken - 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. dannyvilla/simtoken

ActiveLibrary

dannyvilla/simtoken
===================

This package allows to create simple tokens from plain text containing only alphanumeric characters

v1.0.0(6y ago)012MITPHPPHP &gt;=5.3.0

Since Sep 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Danny-Villa/simtoken)[ Packagist](https://packagist.org/packages/dannyvilla/simtoken)[ RSS](/packages/dannyvilla-simtoken/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Simtoken
========

[](#simtoken)

This package allows to create simple tokens by encoding plain text. For example if the plain text looks like this: "I'm me", after the encoding it will become like this: "5c6e54d5s5h89b9e".

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install Simtoken.

```
composer require dannyvilla/simtoken
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

$id = '100';
$encoded = SimToken::encode($id); // with salt and complexity 1
echo($encoded); // e8f8f8

$encoded = SimToken::encode($id, false, 2); // without salt and complexity 2
echo($encoded); // 188808880888

$encoded = SimToken::encode($id, true, 2); // with salt and complexity 2
echo($encoded); // b1h8b2h8b2h8

$encoded = SimToken::encode($id, false, 3); // without salt and complexity 3
echo($encoded); // 588888886888888868888888

$decoded = SimToken::decode($encoded, false, 3); // Decode the last encoded
echo($decoded); // 100
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00139237ed3773e10d2866f46f8f17b214b489595f9d124dc613cc06e61612cb?d=identicon)[Danny Villa](/maintainers/Danny%20Villa)

---

Top Contributors

[![Danny-Villa](https://avatars.githubusercontent.com/u/49371019?v=4)](https://github.com/Danny-Villa "Danny-Villa (10 commits)")

---

Tags

encoding

### Embed Badge

![Health badge](/badges/dannyvilla-simtoken/health.svg)

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

PHPackages © 2026

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