PHPackages                             aludvigsson/youtube-caption-fetcher - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aludvigsson/youtube-caption-fetcher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aludvigsson/youtube-caption-fetcher
===================================

A PHP package to fetch captions from YouTube videos

45.6k1PHP

Since Aug 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aludvigsson/youtube-caption-fetcher)[ Packagist](https://packagist.org/packages/aludvigsson/youtube-caption-fetcher)[ RSS](/packages/aludvigsson-youtube-caption-fetcher/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

YouTube Caption Fetcher
=======================

[](#youtube-caption-fetcher)

A PHP package to fetch captions from YouTube videos.

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

[](#installation)

You can install the package via composer:

```
composer require aludvigsson/youtube-caption-fetcher
```

Usage
-----

[](#usage)

```
use Aludvigsson\YouTubeCaptionFetcher\YouTubeCaptionFetcher;
use Aludvigsson\YouTubeCaptionFetcher\CaptionFetcherException;
use Aludvigsson\YouTubeCaptionFetcher\InvalidUrlException;

$fetcher = new YouTubeCaptionFetcher();
try {
    $transcript = $fetcher->getTranscript('https://www.youtube.com/watch?v=VIDEO_ID');
    $title = $fetcher->getVideoTitle('https://www.youtube.com/watch?v=VIDEO_ID');
    echo $title;
    print_r($transcript);
} catch (CaptionFetcherException $e) {
    echo "An error occurred: " . $e->getMessage();
}
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16348686?v=4)[aludvigsson](/maintainers/aludvigsson)[@aludvigsson](https://github.com/aludvigsson)

---

Top Contributors

[![1upmedia](https://avatars.githubusercontent.com/u/120708296?v=4)](https://github.com/1upmedia "1upmedia (2 commits)")[![aludvigsson](https://avatars.githubusercontent.com/u/16348686?v=4)](https://github.com/aludvigsson "aludvigsson (1 commits)")

### Embed Badge

![Health badge](/badges/aludvigsson-youtube-caption-fetcher/health.svg)

```
[![Health](https://phpackages.com/badges/aludvigsson-youtube-caption-fetcher/health.svg)](https://phpackages.com/packages/aludvigsson-youtube-caption-fetcher)
```

###  Alternatives

[antonrom00/laravel-model-changes-history

Model changes history for laravel

5321.4k](/packages/antonrom00-laravel-model-changes-history)

PHPackages © 2026

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