PHPackages                             ptondereau/biscuit-php-stubs - 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. ptondereau/biscuit-php-stubs

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

ptondereau/biscuit-php-stubs
============================

IDE and static-analysis stubs for the biscuit\_php extension (Biscuit authorization tokens)

v0.5.1(3d ago)061Apache-2.0PHP ^8.1

Since Jul 7Compare

[ Source](https://github.com/ptondereau/biscuit-php-stubs)[ Packagist](https://packagist.org/packages/ptondereau/biscuit-php-stubs)[ Docs](https://github.com/ptondereau/biscuit-php)[ RSS](/packages/ptondereau-biscuit-php-stubs/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

biscuit-php-stubs
=================

[](#biscuit-php-stubs)

IDE and static-analysis stubs for [`biscuit_php`](https://github.com/ptondereau/biscuit-php), the PHP extension for [Biscuit](https://www.biscuitsec.org/) authorization tokens.

> **This repository is a read-only mirror.** The stubs are maintained in the [`stubs/` directory of ptondereau/biscuit-php](https://github.com/ptondereau/biscuit-php/tree/main/stubs)and synced here automatically. Please open issues and pull requests against the main repository.

Installation
------------

[](#installation)

```
composer require --dev ptondereau/biscuit-php-stubs
```

What you get
------------

[](#what-you-get)

- One stub file per class under the `Biscuit\Auth` and `Biscuit\Exception` namespaces.
- Rich docblocks: usage examples, precise PHPStan/Psalm-friendly types, and `@throws` annotations matching the extension's exception hierarchy.

The stubs are for IDE autocompletion and static analysis only. Every stub method throws an `Error` when called, so a missing extension fails loudly instead of silently. At runtime, install the extension itself, for example with [PIE](https://github.com/php/pie):

```
pie install ptondereau/biscuit-php
```

Versioning
----------

[](#versioning)

Releases of this package track the releases of the `biscuit_php` extension: the same tag is published on both repositories.

License
-------

[](#license)

Apache-2.0, same as the main repository.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance99

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity32

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

3d ago

### Community

Maintainers

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

---

Tags

PHPStanidestatic analysisstubsAuthenticationauthorizationpsalmbiscuit

### Embed Badge

![Health badge](/badges/ptondereau-biscuit-php-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/ptondereau-biscuit-php-stubs/health.svg)](https://phpackages.com/packages/ptondereau-biscuit-php-stubs)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.7k147.0M298](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k128.7M1.3k](/packages/league-oauth2-client)[league/oauth1-client

OAuth 1.0 Client Library

996110.3M120](/packages/league-oauth1-client)[hybridauth/hybridauth

PHP Social Authentication Library

3.4k9.0M108](/packages/hybridauth-hybridauth)[lusitanian/oauth

PHP 7.2 oAuth 1/2 Library

1.1k24.0M133](/packages/lusitanian-oauth)[league/oauth2-google

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

42223.4M180](/packages/league-oauth2-google)

PHPackages © 2026

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