PHPackages                             osumionline/plugin-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. [Framework](/categories/framework)
4. /
5. osumionline/plugin-token

ActiveLibrary[Framework](/categories/framework)

osumionline/plugin-token
========================

Plugin OToken para Osumi Framework

3.0.0(1y ago)0150MITPHPPHP &gt;=8.2

Since Sep 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/osumionline/plugin-token)[ Packagist](https://packagist.org/packages/osumionline/plugin-token)[ RSS](/packages/osumionline-plugin-token/feed)WikiDiscussions main Synced yesterday

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

Osumi Framework Plugins: `OToken`

Este plugin añade la clase `OToken` al framework con la que se pueden crear y gestionar tokens de tipo JWT. Para usarse hay que pasar una clave con la que firmar el token en el constructor:

```
$tk = new OToken("1234bf577a76645dbabcdbc379998243ac1c1234");
$tk->addParam('id', $id);
$tk->addParam('name', $name);
$tk->addParam('email', $email);
$tk->addParam('exp', time() + (24 * 60 * 60));

$token = $tk->getToken();
```

Posteriormente para comprobar la validez de un token y obtener sus datos, se debe inicializar usando la misma clave con la que se creó y luego usar el método `checkToken` al que se le pasaría el contenido del token JWT a comprobar:

```
$tk = new OToken("1234bf577a76645dbabcdbc379998243ac1c1234");
if ($tk->checkToken($headers['Authorization'])) {
  $id = $tk->getParam('id');
  $name = $tk->getParam('name');
  $email = $tk->getParam('email');
}
else {
  echo "ERROR: El token no es válido."
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

666d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/156799685?v=4)[Osumi](/maintainers/osumionline)[@osumionline](https://github.com/osumionline)

---

Top Contributors

[![igorosabel](https://avatars.githubusercontent.com/u/633864?v=4)](https://github.com/igorosabel "igorosabel (4 commits)")[![osumionline](https://avatars.githubusercontent.com/u/156799685?v=4)](https://github.com/osumionline "osumionline (1 commits)")

### Embed Badge

![Health badge](/badges/osumionline-plugin-token/health.svg)

```
[![Health](https://phpackages.com/badges/osumionline-plugin-token/health.svg)](https://phpackages.com/packages/osumionline-plugin-token)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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