PHPackages                             flatbits/youstraw - 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. flatbits/youstraw

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

flatbits/youstraw
=================

PHP Youtube Audio and Video Extractor

0.1.0(10y ago)027MITPHP

Since Sep 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/FlatBits/YouStraw)[ Packagist](https://packagist.org/packages/flatbits/youstraw)[ Docs](https://github.com/FlatBits/YouStraw)[ RSS](/packages/flatbits-youstraw/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

YouStraw
========

[](#youstraw)

### Extract a Tube *Straw* from YouTube

[](#extract-a-tube-straw-from-youtube)

This experiment is not supported anymore and will probably not received any update in the future
------------------------------------------------------------------------------------------------

[](#this-experiment-is-not-supported-anymore-and-will-probably-not-received-any-update-in-the-future)

**Important :** Since the data we need is not provided by Google's official API, this library does not require you to provide an API key or any other credentials. However, the the library heavily relies on undocumented APIs and DOM parsing. For these reason, I do not recommend the use of this library in mission critical environment since it can break at any moment from a change in YouTube's code

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

[](#installation)

Install the latest version via [Composer](https://getcomposer.org)

```
composer require flatbits/youstraw
```

Include Composer's autoload file, and don't forget to add the `use` statements

```
require_once('./vendor/autoload.php');
use FlatBits\YouStraw\Straw;
```

#### Optional Requirement

[](#optional-requirement)

- [FFmpeg](https://www.ffmpeg.org/) - Some formats are not directly delivered from YouTube, this library requires FFmpeg for those [Converted formats](#converted)

Usage
-----

[](#usage)

##### Download a single video

[](#download-a-single-video)

```
