PHPackages                             masih/youtubedownloader - 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. masih/youtubedownloader

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

masih/youtubedownloader
=======================

Youtube video downloader

2.9.7(7y ago)12323.1k↓50%56[7 issues](https://github.com/masihyeganeh/YoutubeDownloader/issues)[1 PRs](https://github.com/masihyeganeh/YoutubeDownloader/pulls)2MITPHPPHP &gt;=5.5.0

Since Nov 12Pushed 7y ago12 watchersCompare

[ Source](https://github.com/masihyeganeh/YoutubeDownloader)[ Packagist](https://packagist.org/packages/masih/youtubedownloader)[ Docs](https://github.com/masihyeganeh/YoutubeDownloader)[ RSS](/packages/masih-youtubedownloader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (35)Used By (2)

Youtube Downloader
==================

[](#youtube-downloader)

Youtube video downloader

[![Build Status](https://camo.githubusercontent.com/9f187eb77c28727006ff10d11b018df3ec1bee38bc62246c9620de0b1384f1d4/68747470733a2f2f7472617669732d63692e6f72672f6d61736968796567616e65682f596f7574756265446f776e6c6f616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/masihyeganeh/YoutubeDownloader)[![Latest Stable Version](https://camo.githubusercontent.com/95eebb7f1e67650bb4ea9c7e036ab9c2c8ffc2b861d2675e71d95dd1c19fe594/68747470733a2f2f706f7365722e707567782e6f72672f6d617369682f796f7574756265646f776e6c6f616465722f762f737461626c65)](https://packagist.org/packages/masih/youtubedownloader)[![Latest Unstable Version](https://camo.githubusercontent.com/1b96fbb80840904628f0d8c916e178c84864427683f20d34a77e5f263991d908/68747470733a2f2f706f7365722e707567782e6f72672f6d617369682f796f7574756265646f776e6c6f616465722f762f756e737461626c65)](https://packagist.org/packages/masih/youtubedownloader)[![Coverage Status](https://camo.githubusercontent.com/c3c81027f8884027353a882dd236aadf61ee42733a95e4d7a9b6f7332f58a3ed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d61736968796567616e65682f596f7574756265446f776e6c6f616465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/masihyeganeh/YoutubeDownloader?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c17a0eb370db746fb6e64bedb38cee0c22bbdaa0895920cf83bbb96785795664/68747470733a2f2f706f7365722e707567782e6f72672f6d617369682f796f7574756265646f776e6c6f616465722f646f776e6c6f616473)](https://packagist.org/packages/masih/youtubedownloader)[![License](https://camo.githubusercontent.com/3ac67a5bc29b3e1e59afc5457943d9e0a6752790716fcd38a77dd23e2cf4a672/68747470733a2f2f706f7365722e707567782e6f72672f6d617369682f796f7574756265646f776e6c6f616465722f6c6963656e7365)](https://packagist.org/packages/masih/youtubedownloader)

CLI
---

[](#cli)

If you are not a developer and just need this tool to download videos, only read this part. Next parts are for developers who want to use this package in their projects. We assume that you already installed [PHP](http://php.net/) and [Composer](http://getcomposer.org/). To install the CLI, open terminal and write this command:

```
composer global require Masih/YoutubeDownloader

```

After installation you'll have a new `youtube` command. Just write `youtube --help` to get more information.

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

[](#installation)

Youtube Downloader is PSR-0 compliant and can be installed using [composer](http://getcomposer.org/). Simply add `masih/youtubedownloader` to your composer.json file.

```
    {
        "require": {
            "masih/youtubedownloader": "~2.9.0"
        }
    }
```

and run `composer update` command

Needs PHP 5.5 or newer. Tested with PHP 5.5, 5.6, 7.0, 7.1, hhvm and nightly

By default videos will download to `videos` folder, if you want to change it, you should use `setPath` method.

```
