PHPackages                             dij-digital/deepgram-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. [API Development](/categories/api)
4. /
5. dij-digital/deepgram-laravel

ActiveLibrary[API Development](/categories/api)

dij-digital/deepgram-laravel
============================

A Laravel package for integrating Deepgram’s AI voice services

v0.1.2(4mo ago)6403↓50%1[4 PRs](https://github.com/DIJ-digital/deepgram-laravel/pulls)MITPHPPHP ^8.3CI passing

Since Aug 16Pushed 4mo agoCompare

[ Source](https://github.com/DIJ-digital/deepgram-laravel)[ Packagist](https://packagist.org/packages/dij-digital/deepgram-laravel)[ Docs](https://github.com/dij-digital/deepgram-laravel)[ GitHub Sponsors]()[ RSS](/packages/dij-digital-deepgram-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (7)Used By (0)

Deepgram Laravel - A Laravel Package for Deepgram AI Voice Services
-------------------------------------------------------------------

[](#deepgram-laravel---a-laravel-package-for-deepgram-ai-voice-services)

This package provides a seamless integration with [Deepgram's](https://deepgram.com) AI voice services. Built following Laravel conventions.

### This package supports the following features:

[](#this-package-supports-the-following-features)

#### Speech-to-Text

[](#speech-to-text)

- Transcribe local audio files
- Configurable transcription options (model, language, smart formatting)

> **Requires [PHP 8.3](https://php.net/releases/) or higher and Laravel 12+**

⚡️ Install the package using **Composer**:

```
composer require dij-digital/deepgram-laravel
```

Configuration
-------------

[](#configuration)

Publish the config file:

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

Add your Deepgram API credentials to your `.env` file:

```
DEEPGRAM_API_KEY=your-api-key-here
DEEPGRAM_BASE_URL=https://api.deepgram.com/v1
DEEPGRAM_DEFAULT_MODEL=nova-2
DEEPGRAM_DEFAULT_LANGUAGE=en-US
```

### How to use this package

[](#how-to-use-this-package)

#### Basic File Transcription

[](#basic-file-transcription)

```
use DIJ\Deepgram\Facades\Deepgram;

// Basic transcription with config defaults
$result = Deepgram::listen()->transcribeFile('/path/to/audio.wav', 'audio/wav');

// With custom options per call
$result = Deepgram::listen()->transcribeFile('/path/to/audio.wav', 'audio/wav', [
    'model' => 'nova-3',
    'language' => 'en',
    'smart_format' => true,
    'punctuate' => true,
    'diarize' => true,
]);
```

Configuration Options
---------------------

[](#configuration-options)

The published config file (`config/deepgram-laravel.php`) contains the following options:

```
return [
    'api_key' => env('DEEPGRAM_API_KEY'),
    'base_url' => env('DEEPGRAM_BASE_URL', 'https://api.deepgram.com/v1'),
    'default_model' => env('DEEPGRAM_DEFAULT_MODEL', 'nova-2'),
    'default_language' => env('DEEPGRAM_DEFAULT_LANGUAGE', 'nl'),

];
```

Testing
-------

[](#testing)

When testing your application, you can use `Deepgram::fake()` to prevent real HTTP calls to the Deepgram API:

```
use DIJ\Deepgram\Facades\Deepgram;

it('can process audio files', function () {
    // Prevent real API calls
    Deepgram::fake();

    // Your application code - no real HTTP calls will be made
    $result = Deepgram::listen()->transcribeFile('/path/to/audio.wav');

    // Returns fake transcription data for testing
    expect($result)->toBeArray()->toHaveKey('results');
});
```

The fake will return realistic fake transcription data so your tests can run without hitting the actual Deepgram API.

You can also use Laravel's standard facade mocking methods, like `Deepgram::shouldReceive()->once()->andReturn()` for more precise control if needed.

**Deepgram Laravel** was created by **[DIJ Digital](https://dij.digital)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance77

Regular maintenance activity

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.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 ~141 days

Total

2

Last Release

127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab892324187874b808c0bd037ff12f74fcb3257f0cf8d9723bbd30768d482ac?d=identicon)[DIJ](/maintainers/DIJ)

---

Top Contributors

[![jesse-bos-dij](https://avatars.githubusercontent.com/u/169130613?v=4)](https://github.com/jesse-bos-dij "jesse-bos-dij (33 commits)")[![tychoengberinkDIJ](https://avatars.githubusercontent.com/u/122891499?v=4)](https://github.com/tychoengberinkDIJ "tychoengberinkDIJ (2 commits)")

---

Tags

laravelDIJ Digitaldeepgram-laravel

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dij-digital-deepgram-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/dij-digital-deepgram-laravel/health.svg)](https://phpackages.com/packages/dij-digital-deepgram-laravel)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.0k7.8M57](/packages/dedoc-scramble)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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