https://github.com/ptondereau/biscuit-php
PHP extension for Biscuit
https://github.com/ptondereau/biscuit-php
Last synced: 5 months ago
JSON representation
PHP extension for Biscuit
- Host: GitHub
- URL: https://github.com/ptondereau/biscuit-php
- Owner: ptondereau
- License: apache-2.0
- Created: 2022-08-16T14:32:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T12:39:59.000Z (about 2 years ago)
- Last Synced: 2025-01-06T20:16:20.518Z (5 months ago)
- Language: Rust
- Size: 375 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP extension for Biscuit
## This is a work-in-progress for now
[](https://github.com/ptondereau/biscuit-php/actions/workflows/tests.yml)
## Documentation and specifications
- [biscuit website](https://www.biscuitsec.org) for documentation and examples
- [biscuit specification](https://github.com/biscuit-auth/biscuit)
- [biscuit-rust](https://github.com/biscuit-auth/biscuit-rust) for some more technical details.## Requirements
- [`cargo-php`](https://crates.io/crates/cargo-php)
- PHP with `php-dev` installed >= 8.1
- Rust >= 1.61
- CLang 5## Generating PHP stubs
[`cargo-php`](https://crates.io/crates/cargo-php) have a builtin feature to generate stubs but it's not finalized and stable enough. We use for the moment https://github.com/ptondereau/php-extension-stub-generator to generate with this current usage:
```bash
$ cargo build
$ php \
-dextension=target/debug/libext_biscuit_php.so \
php-extension-stub-generator.phar dump-files ext-biscuit-php stubs
```
## LicenseLicensed under [Apache License, Version 2.0](./LICENSE).