Download the PHP package ekstremedia/laravel-youtube without Composer

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

Laravel YouTube Package

Latest Version on Packagist Tests Total Downloads License Laravel PHP

A comprehensive Laravel package for YouTube API v3 integration with OAuth2 authentication, automatic token refresh, upload management, and extensive API coverage. Perfect for content creators, video platforms, and automated video upload systems.

๐Ÿš€ Features

Core Features

Special Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Step 1: Install via Composer

Step 2: Publish Configuration and Migrations

Step 3: Configure Environment Variables

Add the following to your .env file:

Step 4: Obtain Google API Credentials

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the YouTube Data API v3
  4. Create OAuth 2.0 credentials:
    • Application type: Web application
    • Add authorized redirect URI: https://yourdomain.com/youtube/callback
  5. Copy the Client ID and Client Secret to your .env file

Step 5: Run Migrations

๐ŸŽฏ Quick Start

Basic Usage

Raspberry Pi Integration

Perfect for automated timelapse or security camera uploads. The package is designed for single-user/single-channel applications.

Using the Service Without User Context

Complete Raspberry Pi Example

From Raspberry Pi (Shell Script)

One-Time Google OAuth Setup

Visit the authorization page to connect your YouTube channel:

The page will:

  1. Check if credentials are configured
  2. Show your connected channel (if any)
  3. Allow you to authorize/re-authorize with Google
  4. Automatically refresh expired tokens

After authorization, all uploads will use this token automatically.

๐Ÿ“š Comprehensive Documentation

Authentication Page

The package includes a simple authentication page for connecting your YouTube channel:

Access the page: https://yourdomain.com/youtube-authorize (configurable)

Features:

Security:

By default, the authorization page is protected with the auth middleware. Only logged-in users can access it.

To customize the middleware protection, publish and edit the config file:

Configuration:

Usage in your app:

The page shows:

  1. Configuration status (credentials check)
  2. Connected channel information
  3. Authorization button
  4. Token expiration and refresh status

Authentication & Token Management

OAuth Flow

Token Storage & Management

Video Management

Upload Videos

Manage Videos

Channel Management

Playlist Management

Caption/Subtitle Management

Background Jobs & Queues

You can implement your own background job processing. Here's an example:

Advanced Features

Live Streaming

Comments Management

Analytics Integration

๐Ÿงช Testing

The package includes comprehensive test coverage:

Test categories:

๐Ÿ”ง Configuration

Full configuration options in config/youtube.php:

๐Ÿ› ๏ธ Console Commands

๐Ÿ”„ Scheduled Tasks

Add to your app/Console/Kernel.php:

๐Ÿšจ Error Handling

The package provides specific exception types:

๐Ÿ” Security

๐Ÿ“Š Events

The package dispatches Laravel events:

๐Ÿค Contributing

Please see CONTRIBUTING for details.

๐Ÿงช Testing

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

๐Ÿ”’ Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

๐Ÿ“œ License

The MIT License (MIT). Please see License File for more information.

๐Ÿ‘ฅ Credits

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support


Made with โค๏ธ by Ekstre Media


All versions of laravel-youtube with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
google/apiclient Version ^2.15
google/apiclient-services Version ^0.350 || ^0.420
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 ekstremedia/laravel-youtube contains the following files

Loading the files please wait ...