zenapply / laravel-viddler-upload
此包已被废弃,不再维护。作者建议使用 leadthread/laravel-viddler-upload 包。
5.0.2
2018-02-22 19:06 UTC
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
- dev-master
- 5.0.2
- 5.0.1
- 5.0.0
- 4.1.0
- 4.0.1
- 4.0.0
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.8
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-laravel-8
- dev-local
- dev-fix/use-file-stream
- dev-debug
- dev-scrutinizer-patch-3
- dev-scrutinizer-patch-2
- dev-feature-automated-encoding-checks
- dev-feature-check-encoding-status
- dev-fix-existing-file-bug
- dev-scrutinizer-patch-1
This package is auto-updated.
Last update: 2021-12-17 07:50:28 UTC
README
此包简化了上传视频到 Viddler 的过程
安装
通过 composer 安装 - 在终端中
composer require leadthread/laravel-viddler-upload
现在将以下内容添加到 config/app.php
中的 providers
数组
LeadThread\Viddler\Upload\Providers\Viddler::class
并将以下内容添加到 config/app.php
中的 aliases
数组
"Viddler" => LeadThread\Viddler\Upload\Facades\Viddler::class,
然后,您需要在终端中运行以下命令以复制配置文件
php artisan vendor:publish --provider="LeadThread\Viddler\Upload\Providers\Viddler"
此包包含一个迁移文件。在运行迁移之前,您可能希望查看 config/viddler.php
并将 table
属性更改为您希望使用的表名。之后运行迁移
php artisan migrate
使用方法
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; }
贡献
贡献总是受欢迎的!