> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onlyform.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client SDKs

> Use the official Onlyform SDKs for JavaScript, TypeScript, and PHP.

Official Onlyform SDKs are available from npm and Packagist. Both clients cover forms, blocks, workspaces, submissions, analytics, and webhooks, and expose structured API errors and ETag-based writes.

<Warning>
  API keys are server credentials. Never put an Onlyform API key in browser code, mobile binaries, or a public repository.
</Warning>

## Install

| Language                | Registry  | Package                 | Command                                  |
| ----------------------- | --------- | ----------------------- | ---------------------------------------- |
| JavaScript / TypeScript | npm       | `@onlyform/sdk`         | `npm install @onlyform/sdk`              |
| PHP                     | Packagist | `onlyform/onlyform-php` | `composer require onlyform/onlyform-php` |

<CardGroup cols={2}>
  <Card title="JavaScript / TypeScript" icon="js" href="/sdks/javascript-typescript">
    Typed resources for Node.js 18+ and server runtimes with Fetch.
  </Card>

  <Card title="PHP" icon="php" href="/sdks/php">
    A PHP 8.1+ client with an included cURL transport.
  </Card>
</CardGroup>

## Base URL

Both SDKs use `https://api.onlyform.com` by default. A custom `baseUrl` constructor option is available for private development environments.
