Skip to main content
The PHP SDK is not published on Packagist yet. Use it from source for now.

Requirements

  • PHP 8.1+
  • Composer
  • Access to this repository

Install from local source

  1. Regenerate generated files (optional but recommended after API changes):
pnpm openapi:gen:php
  1. Add the SDK as a local Composer path repository:
{
  "repositories": [
    {
      "type": "path",
      "url": "../ai-stats-public/packages/sdk/sdk-php",
      "options": { "symlink": true }
    }
  ],
  "require": {
    "ai-stats/php-sdk": "*"
  }
}
  1. Install dependencies:
composer install
Last modified on February 17, 2026