TypeAPI

An OpenAPI alternative to describe REST APIs for type-safe code generation.

Specification Editor Generator

PHP Client Integration

To integrate the generated client SDK you need to add the sdkgen/client package to your project. Then you can simply paste the generated code into the source folder and start using the client for example:

<?php

$credentials = new \Sdkgen\Client\Credentials\Anonymous();
$client = new Client('http://127.0.0.1:1080', $credentials);

$message = $client->test()->getHello();

echo 'Message: ' . $message->getMessage();
part of the Apioo-Project