承接 tbetool/php-fb-youtube-download 相关项目开发

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

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

tbetool/php-fb-youtube-download

Composer 安装命令:

composer require tbetool/php-fb-youtube-download

包简介

Based on Youtube-dl and FFMPEG. Downloads Youtube and Facebook videos from the url.

README 文档

README

PHP Library to download Facebook and Youtube videos.

Using the Library

Requirement

  1. FFMPEG: Media editing library
  2. youtube-dl: command line library to download videos

Installation

Intall library in PHP project using composer

composer require tbetool/php-fb-youtube-download

Using Library

$downloader = new Downloader(FFMPEG_PATH, YOUTUBE-DL_PATH);

Setting output path

Set absolute path of the directory where to save the output. You don't need to provide a file name as it will be auto generated.

$path = '/aboslute/path/to/directory';

$downloader->setOutputPath($path);

Download video

$downloader->download(video_url);

You can pass Facebook or Youtube video url to the download() function.
If video is downloaded successfully, this will return the path of the local video saved, otherwise will throw an exception.

Exception handling

Every function throws an Exception in case of any error/issue. Bind the code block within try-catch block to catch any exception occurred.

Ex:

try {
    $downloader->download(video_url);
} catch (Exception $exception) {
    echo $exception->getMessage();
}

Bug Reporting

If you found any bug, create an issue.

Support and Contribution

Something is missing?

  • Fork the repositroy
  • Make your contribution
  • make a pull request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-10-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固