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

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

everstu/netless-token
=====================

netless-token for packagist.org

1.0(7mo ago)03MITPHP

Since Nov 24Pushed 7mo agoCompare

[ Source](https://github.com/everstu/netless-token)[ Packagist](https://packagist.org/packages/everstu/netless-token)[ RSS](/packages/everstu-netless-token/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

PHP
---

[](#php)

> 需要注意的是，此实现并没有发到 `packagist` 上，需使用方自行复制

### 使用实例

[](#使用实例)

#### SDK Token

[](#sdk-token)

```
use Netless\Token\Generate;

$netlessToken = new Generate;
$sdkToken = $netlessToken->sdkToken(
    "netless ak",
    "netless sk",
    1000 * 60 * 10, // token 有效时间 (10分钟)，为 0 时，即永不过期。单位毫秒
    array(
        "role" => Generate::AdminRole // 可以选择 Generate::ReaderRole / TokenRole.WriterRole
    )
);
```

#### Room Token

[](#room-token)

```
use Netless\Token\Generate;

$netlessToken = new Generate;
$roomToken = $netlessToken->roomToken(
    "netless ak",
    "netless sk",
    1000 * 60 * 10, // token 有效时间 (10分钟)，为 0 时，即永不过期。单位毫秒
    array(
        "role" => Generate::ReaderRole, // 可以选择 Generate::AdminRole / TokenRole.WriterRole
        "uuid" => "房间的 UUID"
    )
);
```

#### Task Token

[](#task-token)

```
use Netless\Token\Generate;

$netlessToken = new Generate;
$taskToken = $netlessToken->taskToken(
    "netless ak",
    "netless sk",
    1000 * 60 * 10, // token 有效时间 (10分钟)，为 0 时，即永不过期。单位毫秒
    array(
        "role" => Generate::WriterRole // 可以选择 Generate::AdminRole / TokenRole.ReaderRole
        "uuid" => "任务的 UUID"
    )
);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance64

Regular maintenance activity

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/117be66758e23b54394384783627b14cb8c0ca45f8e42efeb8f37efc5f87c54c?d=identicon)[whtony2003](/maintainers/whtony2003)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[amocrm/amocrm-api-library

amoCRM API Client

185798.9k6](/packages/amocrm-amocrm-api-library)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

435.1M5](/packages/vonage-jwt)[ekapusta/oauth2-esia

Allows to authenticate in ESIA and get authenticated individual personal information.

74195.7k1](/packages/ekapusta-oauth2-esia)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

154.1M9](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

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