承接 unl/rev-api 相关项目开发

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

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

unl/rev-api

最新稳定版本:v0.2.0-beta

Composer 安装命令:

composer require unl/rev-api

包简介

PHP library for the rev.com api

README 文档

README

Build Status Packagist Version

rev_api

rev.com api in PHP

Examples

//Start the Rev api client $rev = new Rev('client api key', 'user api key'); //upload a video $input = $rev->uploadVideoUrl(self::MEDIA_URL); //Create an order $order = new CaptionOrderSubmission($rev); //Add the video to the order $order->addInput($input); //Set some order details $order->setClientRef('example reference number'); $order->setComment('example comment'); $order->setNotification('http://example.org/test.php', CaptionOrderSubmission::NOTIFICATION_LEVEL_DETAILED); $order->setPriority(CaptionOrderSubmission::PRIORITY_TIME_INSENSITIVE); $order->setOutputFormats(array('WebVtt', 'SubRip')); //Send the order $order_number = $order->send(); //get the order $order = $rev->getOrder($order_number); //display the order status $order->getStatus(); //get order attachments foreach ($completed_order->getAttachments() as $attachment) { if (!$attachment->isMedia()) { //Only get attachments that rev.com has completed (captions) //Display the content as its default content type echo $attachment->getContent(); //Display the content as a different content type echo $attachment->getContent('.txt'); } } //Cancel the order $rev->cancelOrder($order_number); //Get the first page of orders $orders = $rev->getOrders(); foreach ($orders as $order) { echo $order->getOrderNumber(); } //Get the rest of the pages while ($orders = $orders->getNextPage()) { foreach ($orders as $order) { echo $order->getOrderNumber(); } } 

Implementation Progress:

  • POST /inputs
  • -- via URL
  • -- via upload
  • -- via upload w/ multipart requests
  • POST /orders (Transcription)
  • POST /orders (Caption)
  • POST /orders (Translation)
  • GET /orders/{order_num}
  • GET /orders
  • -- by page
  • -- by list of IDs
  • GET /orders/{order_num}/cancel
  • GET /attachments/{id}
  • GET /attachments/{id}/content

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 6
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固