PHPackages                             littlefish/uberduck - 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. littlefish/uberduck

ActiveLibrary[API Development](/categories/api)

littlefish/uberduck
===================

Uberduck's Rest API for PHP

0.0.9(2y ago)02.0k—3.7%MITPHP

Since Jan 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/berman82312/uberduck)[ Packagist](https://packagist.org/packages/littlefish/uberduck)[ Docs](https://github.com/berman82312/uberduck)[ RSS](/packages/littlefish-uberduck/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (9)Dependencies (9)Versions (10)Used By (0)

[![Latest Version](https://camo.githubusercontent.com/a5344e44152c451dc94a631315c86107ec769c3f8771037a2aac7e84626e87cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6974746c65666973682f756265726475636b)](https://github.com/berman82312/uberduck)[![Total downloads](https://camo.githubusercontent.com/49d7a36d670c15c2dc2aa829a642b5491bf1c839221b1e19423e8a65f47315f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6974746c65666973682f756265726475636b)](https://github.com/berman82312/uberduck)

uberduck
========

[](#uberduck)

Uberduck's Rest API for PHP. For the full document on Uberduck's API, please refer to the [official document](https://docs.uberduck.ai/reference).

Documentation
-------------

[](#documentation)

- [Installation](#installation)
- [Usage](#usage)
    - [List Voices](#list-voices)
    - [List Voice Samples](#list-voice-samples)
    - [List Backing Tracks](#list-backing-tracks)
    - [Generate Lyrics](#generate-lyrics)
    - [Generate Freestyle](#generate-freestyle)
    - [Prompt Builder](#prompt-builder)

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

[](#installation)

To begin, you'll need to add the component to your `composer.json`

```
composer require littlefish/uberduck
```

After adding the component, update your packages using `composer update` or install them using `composer install`.

### Environment variables

[](#environment-variables)

This library **requires** you to have following settings in your environment variables:

```
UBERDUCK_KEY=
UBERDUCK_SECRET=
UBERDUCK_HOST= # optional
```

### Laravel config (optional)

[](#laravel-config-optional)

You can use this package with your Laravel project directly after installed. If you need to modify the default config, you can add a `uberduck` config key:

```
'uberduck' => [
    'api_key' => 'your-uberduck-key',
    'api_secret' => 'your-uberduck-secret-key',
    'api_host' => 'uberduck-api-host'
]
```

Usage
-----

[](#usage)

The following API methods are mostly following the [official Uberduck document](https://docs.uberduck.ai/reference). You can find more detailed usage by reading the document. For the payloads(parameters), please find detailed description in the official document.

### List Voices

[](#list-voices)

Get information on available voices.

Example:

```
$response = uberduck->listVoices($payload);
```

### List Voice Samples

[](#list-voice-samples)

Return sample outputs from the specified VoiceModel.

Example:

```
$response = uberduck->listVoiceSamples($voiceModelUuid);
```

### List Backing Tracks

[](#list-backing-tracks)

List backing tracks.

Example:

```
$response = uberduck->listBackingTracks();
// or
$response = uberduck->listBackingTracks($payload);
```

### Generate Lyrics

[](#generate-lyrics)

Example:

```
$response = uberduck->generateLyrics($payload);
```

### Generate Freestyle

[](#generate-freestyle)

Example:

```
$response = uberduck->generateFreestyle($payload);
```

### Prompt Builder

[](#prompt-builder)

Custom prompt can be created through the `PROMPT BUILDER` tab in your Uberduck dashboard.

Example:

```
/*
  $payload should be the variables you want to POST to your prompt, not including the `variables` key.
  $payload = [
    'parameter' => 'value'
  ];

  The function will stringify your $payload with following php object structure in the POST body:
  ['variables' => $payload]
*/
$response = uberduck->customPrompt($key, $payload);
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

9

Last Release

845d ago

### Community

Maintainers

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

---

Top Contributors

[![berman82312](https://avatars.githubusercontent.com/u/6673395?v=4)](https://github.com/berman82312 "berman82312 (26 commits)")

---

Tags

UberduckUberduck API

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/littlefish-uberduck/health.svg)

```
[![Health](https://phpackages.com/badges/littlefish-uberduck/health.svg)](https://phpackages.com/packages/littlefish-uberduck)
```

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[brd6/notion-sdk-php

Notion SDK for PHP

6021.6k](/packages/brd6-notion-sdk-php)[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9515.7M72](/packages/m4tthumphrey-php-gitlab-api)[toin0u/digitalocean-v2

DigitalOcean API v2 client for PHP

7281.1M20](/packages/toin0u-digitalocean-v2)[deeplcom/deepl-php

Official DeepL API Client Library

2577.0M97](/packages/deeplcom-deepl-php)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2554.6M13](/packages/jolicode-slack-php-api)

PHPackages © 2026

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