PHPackages                             responsivevoice/sdk - 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. [API Development](/categories/api)
4. /
5. responsivevoice/sdk

ActiveLibrary[API Development](/categories/api)

responsivevoice/sdk
===================

Official PHP client for the ResponsiveVoice text-to-speech API.

v1.1.0(1mo ago)06↓75%MITPHPPHP ^8.2CI passing

Since Jul 16Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

 [![ResponsiveVoice logo](https://camo.githubusercontent.com/36808a8c2169c39e30ee428405895fed4a7b2fd996b2d6663f31dd9ebafef1e0/68747470733a2f2f63646e2e726573706f6e73697665766f6963652e6f72672f6173736574732f6c6f676f2d3132382e737667)](https://camo.githubusercontent.com/36808a8c2169c39e30ee428405895fed4a7b2fd996b2d6663f31dd9ebafef1e0/68747470733a2f2f63646e2e726573706f6e73697665766f6963652e6f72672f6173736574732f6c6f676f2d3132382e737667)

responsivevoice/sdk
===================

[](#responsivevoicesdk)

 [![Tests](https://github.com/responsivevoice/sdk-php/actions/workflows/tests.yml/badge.svg)](https://github.com/responsivevoice/sdk-php/actions/workflows/tests.yml)

 PHP client for the ResponsiveVoice Text-to-Speech API.

 [![Packagist version](https://camo.githubusercontent.com/031c248cfeb125b5885cb0b71784a9035b73d79b2e51b99401033c8df80a7061/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726573706f6e73697665766f6963652f73646b2e737667)](https://packagist.org/packages/responsivevoice/sdk) [![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667) [![PHP 8.2+](https://camo.githubusercontent.com/68f08f50b4e992f78f1f52f8343e8bd003f5d3e5cdb32f5695cf690b04386a96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/68f08f50b4e992f78f1f52f8343e8bd003f5d3e5cdb32f5695cf690b04386a96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)

 [Documentation](https://docs.responsivevoice.org/sdks/php/) | [REST API](https://docs.responsivevoice.org/rest-api/)

---

Compatible with the ResponsiveVoice API v2 (OpenAPI spec `2.0.2`).

Installation
------------

[](#installation)

```
composer require responsivevoice/sdk
```

Get your API credentials
------------------------

[](#get-your-api-credentials)

You need **both** an API key and an API secret to authenticate your requests — neither works alone.

1. [**Register for a free ResponsiveVoice account**](https://responsivevoice.org/register).
2. A default website is created for you automatically. Its identifier is your **API key** — copy it from the [dashboard](https://app.responsivevoice.org).
3. Create your **API secret** in the dashboard section **"Server-to-server API secrets"** (it is not auto-generated).
4. The secret is shown **once** — copy it immediately and store it safely. It can't be retrieved later; if you lose it, create a new one.

PHP runs server-side, which is exactly where the secret belongs — keep it out of any client-side code.

Usage
-----

[](#usage)

```
