octri / openapi-parser
PHP bindings for Octri's Rust OpenAPI parser
v0.1.2
2026-10-23 20:26 UTC
Requires
- php: >=8.1
- ext-ffi: *
- ext-json: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Live demo ยท Validate, parse, bundle and dereference Swagger 2.0 and OpenAPI 3.0, 3.1 and 3.2 documents with Octri's Rust parser.
composer require octri/openapi-parser
$parser = new \Octri\OpenAPI\Parser(); $report = $parser->analyze(\Octri\OpenAPI\Source::text($specText));
The package bundles the native library.
Supported platforms: Linux x64 and arm64 (glibc 2.36 or later) and macOS arm64. On other platforms, build
liboctri_parser_ffi from the repository and pass its path
to the constructor.
Requires PHP 8.1 or later with the FFI extension enabled (ffi.enable) for the SAPI that runs it.
Options, report shapes and the runtime contract are documented in the bindings guide. Licensed under Apache-2.0; the bundled library's third-party notices ship with the package.