PHPackages                             zegnat/mintoken - 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. zegnat/mintoken

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

zegnat/mintoken
===============

A minimal IndieAuth compatible token endpoint.

2.0.0(8y ago)19175[7 issues](https://github.com/Zegnat/php-mintoken/issues)[2 PRs](https://github.com/Zegnat/php-mintoken/pulls)0BSDPHP

Since May 6Pushed 5y ago7 watchersCompare

[ Source](https://github.com/Zegnat/php-mintoken)[ Packagist](https://packagist.org/packages/zegnat/mintoken)[ RSS](/packages/zegnat-mintoken/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (8)Used By (0)

Mintoken
========

[](#mintoken)

A minimal [IndieAuth](https://indieauth.net/) compatible [Token Endpoint](https://indieauth.spec.indieweb.org/#token-endpoint).

Several times I have been asked if there is a token endpoint available to be used together with [Selfauth](https://github.com/Inklings-io/selfauth). A minimal solution that would just work for issuing access tokens that is self-hostable on a server with PHP.

I do not have a need for a token endpoint like this myself, thus developing one would go against my [selfdogfooding](https://indieweb.org/selfdogfood) principles. But because I have a general interest in the IndieAuth specification, here is an implementation anyway!

Setup
-----

[](#setup)

1. Download [the latest release](https://github.com/Zegnat/php-mintoken/releases/latest) from GitHub and extract the files.
2. Create an SQLite database; these instructions assume the database is called `tokens.db`.

    **You can do this from the command line:**

    ```
    sqlite3 tokens.db
    ```

    (The `href` must point at your `endpoint.php` file.)

License
-------

[](#license)

The BSD Zero Clause License (0BSD). Please see the LICENSE file for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~3 days

Total

3

Last Release

2922d ago

Major Versions

1.1.0 → 2.0.02018-05-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3bb51da70a2669f3099430721c36fb45ab255b0486c2b3da3c9cff77db62d95?d=identicon)[Zegnat](/maintainers/Zegnat)

---

Top Contributors

[![Zegnat](https://avatars.githubusercontent.com/u/490579?v=4)](https://github.com/Zegnat "Zegnat (11 commits)")[![jeremycherfas](https://avatars.githubusercontent.com/u/4266172?v=4)](https://github.com/jeremycherfas "jeremycherfas (1 commits)")

---

Tags

indieauthindieweboauth2token-endpoint

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zegnat-mintoken/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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