PHPackages                             ardagnsrn/elevenlabs-laravel - 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. ardagnsrn/elevenlabs-laravel

ActiveLibrary

ardagnsrn/elevenlabs-laravel
============================

This is an Open Source Laravel package for ElevenLabs Text to Speech API.

1.0.1(11mo ago)216.2k—7.1%11[5 PRs](https://github.com/ArdaGnsrn/elevenlabs-laravel/pulls)MITPHPPHP ^8.1CI passing

Since Oct 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ArdaGnsrn/elevenlabs-laravel)[ Packagist](https://packagist.org/packages/ardagnsrn/elevenlabs-laravel)[ Docs](https://github.com/ardagnsrn/elevenlabs-laravel)[ Fund](https://www.buymeacoffee.com/ardagnsrn)[ RSS](/packages/ardagnsrn-elevenlabs-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (6)Used By (0)

[![elevenlabs-js](https://raw.githubusercontent.com/ardagnsrn/elevenlabs-js/master/banner.png)](https://raw.githubusercontent.com/ardagnsrn/elevenlabs-js/master/banner.png)

ElevenLabs.io API for PHP Laravel
=================================

[](#elevenlabsio-api-for-php-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f74110e7e88c9a3d62701be702ba1166caf995284c3041484ec838cf77bd9eb2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726461676e73726e2f656c6576656e6c6162732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ardagnsrn/elevenlabs-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1ddac5336277e749c674643d384380b1c85d777ae1aefac12a4b6133cc556469/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726461676e73726e2f656c6576656e6c6162732d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ardagnsrn/elevenlabs-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6bfbd89d40884fd36600efd158e7a41e89788134125b619a3e10aee7a6dab113/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726461676e73726e2f656c6576656e6c6162732d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ardagnsrn/elevenlabs-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f84124ced66e0809b10ece3abb61538441117a72c622b2319015382b10f9a12c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61726461676e73726e2f656c6576656e6c6162732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ardagnsrn/elevenlabs-laravel)

This is an Open Source PHP Laravel package for [elevenlabs.io](https://elevenlabs.io) Text to Speech API. You can find the Official API document here:

Buy me a coffee
---------------

[](#buy-me-a-coffee)

Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this :)

[![Buy Me A Coffee](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/ardagnsrn)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Supported Methods](#supported-methods)
- [Parameters](#parameters)
    - [Voice Settings](#voice-settings)
- [Usage](#usage)
    - [textToSpeech() Method](#texttospeech-method)
    - [getModels() Method](#getmodels-method)
- [Testing](#testing)
- [Other Languages](#other-languages)
- [Changelog](#changelog)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require ardagnsrn/elevenlabs-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="elevenlabs-laravel-config"
```

This is the contents of the published config file:

```
return [
    'api_key' => env('ELEVENLABS_API_KEY'),
];
```

Supported Methods
-----------------

[](#supported-methods)

MethodParametersEndPointHTTP Method`textToSpeech()``voiceId`, `text`, `modelId`, `voiceSettings``/v1/text-to-speech/{voice_id}/stream`POST`getModels()`N/A`/v1/models`GETParameters
----------

[](#parameters)

ParameterTypeDescriptionRequiredDefaultvoiceIdStringThe ID of the voice to use. You can get a list of available voices using `getVoices()`.YesN/AtextStringThe text to convert to speech.YesN/AmodelIdStringThe ID of the model to use. You can get a list of available models using `getModels()`.No`eleven_multilingual_v2`voiceSettingsArrayThe settings to use for the voice.No`['stability' => 0.95, 'similarity_boost' => 0.75, 'style' => 0.06, 'use_speaker_boost' => true]`### Voice Settings

[](#voice-settings)

ParameterTypeDescriptionDefaultstabilityFloatThe stability of the voice.0.95similarity\_boostFloatThe similarity boost of the voice.0.75styleFloatThe style of the voice.0.06use\_speaker\_boostBooleanWhether to use speaker boost or not.trueUsage
-----

[](#usage)

### textToSpeech() Method

[](#texttospeech-method)

Generate a text to speech audio file. You can either save the file or get the pipe and do whatever you want with it.

```
$elevenLabs = new ArdaGnsrn\ElevenLabs();
$response = $elevenLabs->textToSpeech('YOUR_VOICE_ID', 'Hello World!', 'eleven_multilingual_v2', [
    'stability' => 0.95,
    'similarity_boost' => 0.75,
    'style' => 0.06,
    'use_speaker_boost' => true
]);

// If you want, you can save to storage like this:
$response->saveFile('audio.mp3');

// Or you can get the response and do whatever you want with it:
$response->getResponse();
```

### getModels() Method

[](#getmodels-method)

Get a list of available models.

```
$elevenLabs = new ArdaGnsrn\ElevenLabs();
$models = $elevenLabs->getModels();
```

Testing
-------

[](#testing)

```
composer test
```

Other Languages
---------------

[](#other-languages)

Also, you can find the other languages of this package here:

- [ElevenLabs API For NodeJS (elevenlabs-js)](https://github.com/ArdaGnsrn/elevenlabs-js)
- [ElevenLabs API For PHP Laravel (elevenlabs-laravel)](https://github.com/ArdaGnsrn/elevenlabs-laravel)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Arda GUNSUREN](https://github.com/ArdaGnsrn)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance71

Regular maintenance activity

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~241 days

Total

2

Last Release

340d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c03ebce320175d5f0ff949dce179582be2e34eadc0ee39e127ccfb36236ce451?d=identicon)[ArdaGnsrn](/maintainers/ArdaGnsrn)

---

Top Contributors

[![ArdaGnsrn](https://avatars.githubusercontent.com/u/52893305?v=4)](https://github.com/ArdaGnsrn "ArdaGnsrn (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![amolitos](https://avatars.githubusercontent.com/u/15843598?v=4)](https://github.com/amolitos "amolitos (1 commits)")[![MiniCodeMonkey](https://avatars.githubusercontent.com/u/220535?v=4)](https://github.com/MiniCodeMonkey "MiniCodeMonkey (1 commits)")

---

Tags

aiai-speechai-ttselevenlabselevenlabs-apielevenlabs-laravelelevenlabs-phplaraveltext-to-speechttstts-aitts-apivoice-cloneaivoice-cloninglaravelArdaGnsrnelevenlabs-laravel

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ardagnsrn-elevenlabs-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ardagnsrn-elevenlabs-laravel/health.svg)](https://phpackages.com/packages/ardagnsrn-elevenlabs-laravel)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[spatie/laravel-mailcoach-sdk

An SDK to easily work with the Mailcoach API in Laravel apps

41290.2k1](/packages/spatie-laravel-mailcoach-sdk)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
