Download the PHP package billyriantono/youtube without Composer

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

Laravel 5 - YouTube API Wrapper

Based on Dawson/Youtube

If you've ever needed to upload videos to a single YouTube channel or you need request data from your Laravel 5 application, then hopefully this is the package for you.

Installation

Add the following to your composer.json.

After you've added the above, run composer update to pull it in. Once your update has finished, we'll need to add the service provider to your config/app.php

Then add the alias...

Configuration

Run php artisan vendor:publish to publish the migrations and config. Then migrate the database with, php artisan migrate.

This will create our youtube_access_tokens and channels table which will of course, hold our access tokens once we've authenticated with Google.

Next it's time to configure our settings in config/youtube.php makes use of environment variables to ensure no secret crentials make way into version control. So add the following variables to your .env file.

You can find these values on Google's developer console for your application.

Now set up your applications callback, you can find this on your config/youtube.php. By default it's set to http://yourapp.co.uk/youtube-callback

If you're unsure of how to use enviroment variables, Jeffrey Way helps clear the fog over at Laracasts with his Environments and Configuration lesson with Laravel 5.

Authentication

Now our application is configured, we'll go through the inital authentication with Google. By default, the authorization route is /youtube-auth but you can change this in config/youtube.php should you wish to.

Proceed with hitting the auth route in your application of which you will be sent to Google to authorize your YouTube account/channel. Once authorized, you will be redirected back to your application assuming you correctly configured your callback.

Upload a Video

Once you have complete the above, your Laravel application will now be authorized to make requests to YouTube. Specifically in this case, uploading a video by passing the full path to the file you wish to upload..

To upload a video, do the following:

The above will return the ID of the uploaded video to YouTube.

You also have the option to pass a second parameter as an array with the following available keys.

It's that simple!

Deleting a Video

If you would like to delete a video, which of course is uploaded to your authorized channel, you will also have the ability to delete it:

When deleting a video, it will check if exists before attempting to delete.

Questions

Should you have any questions, please feel free to submit an issue.


All versions of youtube with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version >=5.0.0
google/apiclient Version 1.1.*
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 billyriantono/youtube contains the following files

Loading the files please wait ....