ptondereau / biscuit-php-stubs
IDE and static-analysis stubs for the biscuit_php extension (Biscuit authorization tokens)
Requires
- php: ^8.1
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\AuthandBiscuit\Exceptionnamespaces. - Rich docblocks: usage examples, precise PHPStan/Psalm-friendly types, and
@throwsannotations 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.