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

0.1.3(1mo ago)71.0k↓56.4%1[2 issues](https://github.com/DIJ-digital/deepgram-laravel/issues)[4 PRs](https://github.com/DIJ-digital/deepgram-laravel/pulls)MITPHPPHP ^8.3CI passing

Since Aug 16Pushed 1mo 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 yesterday

READMEChangelog (3)Dependencies (26)Versions (9)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

45

—

FairBetter than 91% of packages

Maintenance85

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~138 days

Total

3

Last Release

44d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3957548?v=4)[Daniel](/maintainers/DIJ)[@DIJ](https://github.com/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)")[![kevinpijning](https://avatars.githubusercontent.com/u/2886081?v=4)](https://github.com/kevinpijning "kevinpijning (4 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.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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