PHPackages                             albertkampde/youtube-downloader - 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. albertkampde/youtube-downloader

ActiveLibrary

albertkampde/youtube-downloader
===============================

PHP library for download videos from Youtube

v1.0.2(10y ago)084MITPHPPHP &gt;=5.5.0

Since Jul 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/albertkampde/Youtube-dl-php)[ Packagist](https://packagist.org/packages/albertkampde/youtube-downloader)[ RSS](/packages/albertkampde-youtube-downloader/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

YouTube-dl-php
==============

[](#youtube-dl-php)

[![Build Status](https://camo.githubusercontent.com/5570c502f4e873776a53867694a6da4a140f4221ec104805db35ff1fb46bddab/68747470733a2f2f7472617669732d63692e6f72672f416c626572744b616d7064652f596f75747562652d646c2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AlbertKampde/Youtube-dl-php) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/976a1be7cbc4900665e03fe86e4128b8e7be9bcc7ee50837ed5e493f935949de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c626572744b616d7064652f596f75747562652d646c2d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlbertKampde/Youtube-dl-php) [![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)

This library is a PHP implementation of [Youtube-dl](https://github.com/rg3/youtube-dl) for downloading video from Youtube and other sites.

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

[](#installation)

[Youtube-dl](https://github.com/rg3/youtube-dl) has must be installed first.

Installation using [Composer](https://getcomposer.org):

```
{
    "require": {
        "albertkampde/youtube-downloader": "dev-master"
    }
}
```

Examples
--------

[](#examples)

### Download

[](#download)

```
use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->setOutput("\"/tmp/%(title)s.%(ext)s\"");
$youtubedl->download('BaW_jenozKc')
          ->execute();
```

### Multiple Download

[](#multiple-download)

```
use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->setOutput("\"/tmp/%(title)s.%(ext)s\"");
$youtubedl->download(array('BaW_jenozKc','dOibtqWo6z4'))
          ->execute();
```

### Extractor List

[](#extractor-list)

```
use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->getListExtractors();
echo $youtubedl->execute();
```

### Extractor Descriptions

[](#extractor-descriptions)

```
use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->getExtractorDescriptions();
echo $youtubedl->execute();
```

### User Agent

[](#user-agent)

```
use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->setUserAgent('Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14')
          ->dumpUserAgent();
echo $youtubedl->execute();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 71.9% 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 ~119 days

Total

3

Last Release

3731d ago

PHP version history (2 changes)v1.0.1PHP &gt;=5.4.0

v1.0.2PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a72a5232ed8bc215b11feb54bf3c58e61c39d3938ae740979c203c61ffdd4cc?d=identicon)[AlbertKampde](/maintainers/AlbertKampde)

---

Top Contributors

[![chellem](https://avatars.githubusercontent.com/u/570856?v=4)](https://github.com/chellem "chellem (23 commits)")[![AlbertKampde](https://avatars.githubusercontent.com/u/4953631?v=4)](https://github.com/AlbertKampde "AlbertKampde (9 commits)")

---

Tags

youtubedownload

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/albertkampde-youtube-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/albertkampde-youtube-downloader/health.svg)](https://phpackages.com/packages/albertkampde-youtube-downloader)
```

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.5k48.6M278](/packages/hashids-hashids)[norkunas/youtube-dl-php

youtube-dl / yt-dlp wrapper for php

512323.2k15](/packages/norkunas-youtube-dl-php)[chellem/youtube-downloader

PHP library to download video

686.2k](/packages/chellem-youtube-downloader)

PHPackages © 2026

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