Download the PHP package ayman-elmalah/laravel-youtube-uploader without Composer
On this page you can find all versions of the php package ayman-elmalah/laravel-youtube-uploader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ayman-elmalah/laravel-youtube-uploader
More information about ayman-elmalah/laravel-youtube-uploader
Files in ayman-elmalah/laravel-youtube-uploader
Package laravel-youtube-uploader
Short Description The package will help you to upload videos to youtube and making youtube api much easier
License MIT
Informations about the package laravel-youtube-uploader
Laravel Youtube Uploader
laravel youtube uploader is a php package written by Ayman Elmalah with laravel to handle many youtube sdk functionality by making it's api more easy .
Features
- Uploading videos to user channel
- Creating playlists
- Insert video to existing playlist
- Set thumbnail to existing video or at uploading video
- Deleting video
Installation Guide
At laravel project install package using composer
The package is compatible with laravel 5.7 so you don't need to set providers or aliases for the package, we're using laravel auto discovery
Get Your Credentials From Google
- Go to Google Developers Console Press Credentials from the sidebar then create project from OAuth consent screen then Click Credentials => Create credentials => OAuth client id, choose it web application and set you Authorized redirect URIs, also you can edit or add new urls later
- You will get Client Id and Client Secret
-
Go to your .env file and paste your credentials to be like this
You are now ready to use the package
There is two steps to do any thing for the package, get authenticated url and do the youtube api action
To get the auth url, just go to routes/web.php and do this route or the path you want to use
At the controller, you will get the url and you can show it in view file or redirect user to it directly
This code will authenticate user then redirect user to another url to do your logic on it, and to do any logic code, you need to add route url to routes/web.php
Don't forget to save full path of callback url at google console developer at credential for project
The we will now show our logic of the package
Upload video
Set thumbnail to existing video
Remember that you need to set auth url at routes for each callback url
Set thumbnail at uploading
Remember that you need to set auth url at routes for each callback url
Set tags for existing video
Remember that you need to set auth url at routes for each callback url
Create Playlist
Remember that you need to set auth url at routes for each callback url
Insert Video to playlist
Remember that you need to set auth url at routes for each callback url
Delete video by the given id
Remember that you need to set auth url at routes for each callback url
If you have any question, issue Or request, i'll be happy if hear any thing from you