PHPackages                             das-l/youtube-dl-bundle - 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. das-l/youtube-dl-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

das-l/youtube-dl-bundle
=======================

Symfony bundle that provides service injection and config for norkunas/youtube-dl-php

1.0.0(2y ago)1161MITPHPPHP ^7.4 || ^8.0

Since May 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/das-l/youtube-dl-bundle)[ Packagist](https://packagist.org/packages/das-l/youtube-dl-bundle)[ Docs](https://github.com/das-l/youtube-dl-bundle)[ RSS](/packages/das-l-youtube-dl-bundle/feed)WikiDiscussions main Synced 1mo ago

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

youtube-dl bundle
=================

[](#youtube-dl-bundle)

Symfony bundle that provides service injection and config for `norkunas/youtube-dl-php`, a PHP wrapper for youtube-dl or yt-dlp.

Service config provided
-----------------------

[](#service-config-provided)

```
services:
    # ...
    das_l_youtube_dl:
        class: YoutubeDl\YoutubeDl
        arguments:
            - '@das_l_youtube_dl.process_builder'
            - '@das_l_youtube_dl.metadata_reader'
            - '@filesystem'
        calls:
            - setBinPath: ['%das_l_youtube_dl.binPath%']
            - setPythonPath: ['%das_l_youtube_dl.pythonPath%']

    das_l_youtube_dl.process_builder:
        class: YoutubeDl\Process\DefaultProcessBuilder

    das_l_youtube_dl.metadata_reader:
        class: YoutubeDl\Metadata\DefaultMetadataReader
```

Service usage
-------------

[](#service-usage)

Note: For more details on the usage of the library itself, check out the documentation provided by `norkunas/youtube-dl-php`.

```
services:
    # ...
    App\Foo\YouTubeFoo:
        arguments:
            - '@das_l_youtube_dl'
```

```
