Download the PHP package p3sdev/php-ytdlp-wrapper without Composer

On this page you can find all versions of the php package p3sdev/php-ytdlp-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-ytdlp-wrapper

๐ŸŽฌ php-ytdlp-wrapper

Robust yt-dlp wrapper for PHP 8.4 with a ready-to-use Symfony 7 bundle.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Install

๐Ÿงฉ Symfony 7 Bundle Setup

1๏ธโƒฃ Register bundle

If Symfony Flex does not auto-register it, add to config/bundles.php:

2๏ธโƒฃ Configure bundle

Create config/packages/yt_dlp.yaml:

๐Ÿฑ Symfony Flex Recipe

A ready-to-submit Symfony Flex recipe scaffold is available in:

To publish it for auto-install support, submit that recipe to symfony/recipes-contrib.

๐Ÿš€ Usage in Symfony

Inject P3s\YtDlp\YtDlpClientInterface into your service:

๐Ÿ› ๏ธ Core API

โฌ‡๏ธ download(string|array $urls, array $options = []): ProcessResult

Runs yt-dlp for download/processing workflows.

๐Ÿง  rawJson(string|array $urls, array $options = []): ProcessResult

Runs metadata mode (--dump-json --skip-download --no-warnings) and returns full process output.

๐Ÿ”Ž extractInfo(string|array $urls, array $options = []): array

Convenience method that returns parsed JSON lines.

โš™๏ธ run(YtDlpRequest $request): ProcessResult

Low-level execution with full control over options, flags, and extra arguments.

๐Ÿงพ YtDlpRequest

โš ๏ธ Errors

๐Ÿ“ Notes

๐Ÿ“„ License

MIT. See LICENSE.

โœ… CI

GitHub Actions runs tests on push and pull requests for PHP 8.4 and 8.5.

Workflow file: .github/workflows/tests.yml


All versions of php-ytdlp-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
symfony/process Version ^7.4.5
symfony/config Version ^7.4.4
symfony/dependency-injection Version ^7.4.5
symfony/http-kernel Version ^7.4.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package p3sdev/php-ytdlp-wrapper contains the following files

Loading the files please wait ...