Download the PHP package michaelbelgium/laravel-youtube-api without Composer

On this page you can find all versions of the php package michaelbelgium/laravel-youtube-api. 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 laravel-youtube-api

Laravel Youtube API

Latest Version on Packagist Total Downloads

This package provides a simple youtube api for your Laravel application. It is based on my non-laravel package Youtube API.

Installation

Software

Depending on what driver you use - on the server where your laravel app is located, you'll need to install some packages.

API Usage

This package adds 3 api routes. The route prefix, /ytconverter/ in this case, is configurable.

Check the wiki page of this repository for more information about the routes.

To enable the search endpoint you need to acquire a Google API key on the Google Developer Console for the API "Youtube Data API v3". Use this key in the environment variable GOOGLE_API_KEY

Configuration

Driver

Downloading Youtube video's is not simple these days. To cover this, you can choose how you want to download the video's by setting the driver in the configuration.

Available drivers:

The default driver. Requires ffmpeg and yt-dlp or youtube-dl to be installed on the server and it'll download files to the server. Metadata comes from yt-dlp.

Requires a self hosted Cobalt (API) instance. It doesn't require any software to be installed on the server and it doesn't download files to the server. If GOOGLE_API_KEY is set, it'll use the Youtube Data API to get metadata, otherwise it'll download the video to get the metadata and thus use storage space instead.

API authorization

If needed, you can protect the API routes with an authentication guard by setting auth in the configuration.

Example:

API rate limiting

If needed, you can limit API calls by editing the config setting ratelimiter. See Laravel docs for more information or examples.

Example:


All versions of laravel-youtube-api with dependencies

PHP Build Version
Package Version
Requires google/apiclient Version ^2.4
illuminate/support Version ^8.0|^9.0|^10.0
james-heinrich/getid3 Version ^1.9
norkunas/youtube-dl-php Version ^2.0
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 michaelbelgium/laravel-youtube-api contains the following files

Loading the files please wait ....