octri / spec-converter
Bindings for the offline Octri Rust Spec Converter
Requires
- php: >=8.1
- ext-ffi: *
- ext-json: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Live demo ยท Convert Swagger, OpenAPI, Postman, Insomnia, RAML, WSDL and cURL descriptions to OpenAPI, offline, with Octri's Rust converter.
composer require octri/spec-converter
$converter = new \Octri\Convert\Converter(); $report = $converter->convert((object) [ "input" => (object) ["uri" => "memory://convert/openapi.yaml", "content" => $sourceText], ]);
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_converter_ffi from the repository and pass its path to Converter.
Requires PHP 8.1 or later with the FFI extension enabled (ffi.enable) for the SAPI that runs it.
Requests, reports 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.