leadthread / laravel-viddler-upload
Package info
github.com/leadthread/laravel-viddler-upload
pkg:composer/leadthread/laravel-viddler-upload
Requires
- illuminate/filesystem: ^5.5.0
- illuminate/http: ^5.5.0
- illuminate/support: ^5.5.0
- leadthread/php-viddler: ^3.0.0
- league/flysystem: ^1.0.27
- nesbot/carbon: ^1.21
Requires (Dev)
- orchestra/database: ^3.5
- orchestra/testbench: ^3.5
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2026-05-17 17:12:57 UTC
README
This package makes uploading videos to Viddler easier
Installation
Install via composer - In the terminal:
composer require leadthread/laravel-viddler-upload
Now add the following to the providers array in your config/app.php
LeadThread\Viddler\Upload\Providers\Viddler::class
and this to the aliases array in config/app.php
"Viddler" => LeadThread\Viddler\Upload\Facades\Viddler::class,
Then you will need to run these commands in the terminal in order to copy the config file
php artisan vendor:publish --provider="LeadThread\Viddler\Upload\Providers\Viddler"
This package includes a migration file. Before you run the migration you may want to take a look at config/viddler.php and change the table property to a table name that you would like to use. After that run the migration
php artisan migrate
Usage
function upload(Request $request) { $file = $request->file('file'); $name = "My Video Title"; /* * Returns an Eloquent Model */ $model = Viddler::create($file, $name); // Convert the file $model->convert(); // Upload it $model->upload(); // Check the encoding status $model->check(); return $model; }
Contributing
Contributions are always welcome!