PHPackages                             srcker/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. srcker/token

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

srcker/token
============

登录验证库，用户用户登录生成token给客户端

v1.0.2(6y ago)1234Apache-2.0PHP

Since Aug 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/srcker/php-token)[ Packagist](https://packagist.org/packages/srcker/token)[ RSS](/packages/srcker-token/feed)WikiDiscussions master Synced 2w ago

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

captcha
=======

[](#captcha)

登录token生成库

安装
--

[](#安装)

> composer require srcker/token

使用
--

[](#使用)

### 在控制器中输出验证码

[](#在控制器中输出验证码)

在控制器的操作方法中使用

```
    use srcker/Token;

    Token::encrypt('加密数据','加密key');
    Token::decrypt('解密数据','加密key');
```

使用OpenSSL AES 算法
----------------

[](#使用openssl-aes-算法)

```
    use srcker/openssl/Token;

    Token::encrypt('加密数据','加密key','加密IV');
    Token::decrypt('解密数据','加密key','加密IV');
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2504d ago

### Community

Maintainers

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

---

Top Contributors

[![srcker](https://avatars.githubusercontent.com/u/6512197?v=4)](https://github.com/srcker "srcker (1 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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