PHPackages                             latentkit/latentkit-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. latentkit/latentkit-php

ActiveLibrary

latentkit/latentkit-php
=======================

Official PHP SDK for LatentKit's route-based /v1 API.

v0.1.0-beta.3(1mo ago)0908↑80.4%1MITPHPPHP ^8.1CI passing

Since Jul 14Pushed 1mo agoCompare

[ Source](https://github.com/amirehman/latentkit-php)[ Packagist](https://packagist.org/packages/latentkit/latentkit-php)[ Docs](https://docs.latentkit.com)[ RSS](/packages/latentkit-latentkit-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (1)

LatentKit PHP SDK
=================

[](#latentkit-php-sdk)

Official PHP 8.1+ client for LatentKit's canonical, route-based `/v1` API.

The application sends the task. The API key's assigned published route selects the provider and model. Do not send `model`, `provider`, `route`, or `policy`; the SDK rejects those route-control fields before making a request.

Install
-------

[](#install)

Install the current beta from [Packagist](https://packagist.org/packages/latentkit/latentkit-php):

```
composer require latentkit/latentkit-php:0.1.0-beta.3
```

For repository development, run `composer install` inside `sdk/php` and load `vendor/autoload.php`.

Quickstart
----------

[](#quickstart)

```
