Search by

octri / spec-converter

octri

Bindings for the offline Octri Rust Spec Converter

v0.1.3 2026-10-23 20:30 UTC

This package is auto-updated.

Last update: 2026-11-08 08:39:12 UTC


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.