ptondereau/biscuit-php-stubs

IDE and static-analysis stubs for the biscuit_php extension (Biscuit authorization tokens)

Maintainers

Package info

github.com/ptondereau/biscuit-php-stubs

Homepage

Issues

pkg:composer/ptondereau/biscuit-php-stubs

Transparency log

Statistics

Installs: 61

Dependents: 1

Suggesters: 0

Stars: 0

v0.5.1 2026-07-07 20:43 UTC

This package is auto-updated.

Last update: 2026-07-07 20:50:13 UTC


README

IDE and static-analysis stubs for biscuit_php, the PHP extension for Biscuit authorization tokens.

This repository is a read-only mirror. The stubs are maintained in the stubs/ directory of ptondereau/biscuit-php and synced here automatically. Please open issues and pull requests against the main repository.

Installation

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

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:

pie install ptondereau/biscuit-php

Versioning

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

License

Apache-2.0, same as the main repository.