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)0148MITPHPPHP &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 1mo ago

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

29

—

LowBetter than 59% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity11

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

620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c03a0c641fe19db3016e1e289f1fb2531660199206a23dac404f00ea8c428619?d=identicon)[osumionline](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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