PHPackages                             devswebdev/devtube - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. devswebdev/devtube

ActiveLibrary[File &amp; Storage](/categories/file-storage)

devswebdev/devtube
==================

A Laravel package for downloading videos from the net by simply passing a URL

2.0.6(6y ago)367949[6 issues](https://github.com/DevinNorgarb/devtube/issues)[2 PRs](https://github.com/DevinNorgarb/devtube/pulls)MITPHP

Since May 5Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/DevinNorgarb/devtube)[ Packagist](https://packagist.org/packages/devswebdev/devtube)[ RSS](/packages/devswebdev-devtube/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (6)Dependencies (7)Versions (18)Used By (0)

Install DevTube Video Downloader
--------------------------------

[](#install-devtube-video-downloader)

Install FFMPEG only if you want to convert videos to mp3 etc

Ubuntu:

```
sudo apt install ffmpeg
```

Install `youtube-dl`

```
sudo apt install youtube-dl
```

Install via composer

```
composer require devswebdev/devtube
```

Publish vendor assets

```
php artisan vendor:publish --provider="DevsWebDev\DevTube\DevTubeServiceProvider"
```

This publishes a `devtube.php` file in your `config/` directory Please set your default options there.

Make sure your `youtube-dl` path is correct by comparing the output of `which youtube-dl` to the `bin_path` in `devtube.php`

```
"bin_path" => "/usr/bin/youtube-dl",
```

An Example

```
namespace App\Http\Controllers;
use DevsWebDev\DevTube\Download;

class YoutubeDownloadController extends Controller
{
    public function download()
    {
    $dl = new Download($url = "https://www.youtube.com/watch?v=ye5BuYf8q4o", $format = "mp4", $download_path = "music" );

    //Saves the file to specified directory
    $media_info = $dl->download();
    $media_info = $media_info->first();

    // Return as a download
    return response()->download($media_info['file']->getPathname());

    }
}
```

Or in your web.php routes file

```
use DevsWebDev\DevTube\Download;

Route::get('/', function () {
    $dl = new Download($url = "https://www.youtube.com/watch?v=ye5BuYf8q4o", $format = "mp3", $download_path = "music" );

    //Saves the file to specified directory
    $media_info = $dl->download();
    $media_info = $media_info->first();

    // Return as a download
    return response()->download($media_info['file']->getPathname());

});
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance54

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity72

Established project with proven stability

 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 ~103 days

Recently: every ~71 days

Total

8

Last Release

2207d ago

Major Versions

1.0.5 → 2.0.12019-07-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12491966?v=4)[Devin Norgarb](/maintainers/DevinNorgarb)[@DevinNorgarb](https://github.com/DevinNorgarb)

---

Top Contributors

[![DevinNorgarb](https://avatars.githubusercontent.com/u/12491966?v=4)](https://github.com/DevinNorgarb "DevinNorgarb (131 commits)")

---

Tags

laravellaravel-5-packagelaravel-packagelaravel5mp3mp3-convertermp4phpvideo-downloaderyoutube-dlyoutubedownloaderlaravellaravel-packagedownloadermp3youtube-dlmp4youtube downloaderlaravel-youtube-downloadervideo downloaderdevtubedevswebdevmp3 downloadermedia downloaderlaravel downloader

### Embed Badge

![Health badge](/badges/devswebdev-devtube/health.svg)

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

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)

PHPackages © 2026

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