PHPackages                             devtoolcz/discordtokenrevoke - 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. devtoolcz/discordtokenrevoke

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

devtoolcz/discordtokenrevoke
============================

OAUTH2 Revoking Token for Discord.

v2.1(5y ago)0321[1 PRs](https://github.com/DevToolsCZ/discord-token-revoke/pulls)MITPHPPHP &gt;=7.4

Since Dec 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DevToolsCZ/discord-token-revoke)[ Packagist](https://packagist.org/packages/devtoolcz/discordtokenrevoke)[ RSS](/packages/devtoolcz-discordtokenrevoke/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

### devtoolscz/discordtokenrevoke

[](#devtoolsczdiscordtokenrevoke)

**Introduction**Discord Revoke token is a small library for revoking token only for Discord OAUTH2 Applications. Example when user logout from page, we must revoke old token, for preventing leaking tokens. Library is created for Nette Framework.

**VERSIONS**

STATEVERSIONBRANCHNETTEPHPDev2.1main3.1&gt;=7.4Old2.0main3.0&gt;=7.2**Setup**Recommended way to install is via composer.

> composer require devtoolcz/discordtokenrevoke

```
extensions:
	revoke: Devtoolcz\Discordtokenrevoke\Nette\DI\RevokeExtension
```

**Configuration**

```
revoke:
    clientId: your discord application id
    clientSecret: your discord application secret key
    api_url: 'https://discord.com/api/v8'
```

**Usage**

```
use Nette;
use Devtoolcz\Discordtokenrevoke\DiscordRevoke;

final class ExamplePresenter extends Nette\Application\UI\Presenter
{

    /** @inject */
    private DiscordRevoke $discordRevoke;

    public function actionDiscordLogout()
    {
        $this->discordRevoke->createRevokeRequest('/oauth2/token/revoke')
            ->setToken('token here')->send();
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94% 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 ~13 days

Total

4

Last Release

1934d ago

Major Versions

1.6.x-dev → v2.02021-01-01

PHP version history (2 changes)v1.6PHP &gt;=7.2

v2.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5664555774a1350d894e60e6f2868ed243b32cd61d7c02941765415a95b5b54a?d=identicon)[EncryptSL](/maintainers/EncryptSL)

---

Top Contributors

[![EncryptSL](https://avatars.githubusercontent.com/u/9441083?v=4)](https://github.com/EncryptSL "EncryptSL (47 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/devtoolcz-discordtokenrevoke/health.svg)

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

###  Alternatives

[contributte/recaptcha

Google reCAPTCHA for Nette - Forms

421.3M4](/packages/contributte-recaptcha)

PHPackages © 2026

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