承接 leadthread/laravel-viddler-upload 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leadthread/laravel-viddler-upload

Composer 安装命令:

composer require leadthread/laravel-viddler-upload

包简介

README 文档

README

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads

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!

统计信息

  • 总下载量: 279
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固