PHPackages                             unl/rev-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. unl/rev-api

ActiveLibrary[API Development](/categories/api)

unl/rev-api
===========

PHP library for the rev.com api

v0.2.0-beta(4y ago)431.8k↓40%5[5 issues](https://github.com/unl/rev_api/issues)BSDPHPPHP &gt;=7.3.0

Since Aug 21Pushed 4y ago6 watchersCompare

[ Source](https://github.com/unl/rev_api)[ Packagist](https://packagist.org/packages/unl/rev-api)[ RSS](/packages/unl-rev-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a04434ea5f92dceab758849a71d6cc490e57ba1b0f0ca2310d2b6e05c927c074/68747470733a2f2f7472617669732d63692e6f72672f756e6c2f7265765f6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/unl/rev_api)[![Packagist Version](https://camo.githubusercontent.com/36bb885cb8b0f3b1aca5aafea67e95a64a79e513d36bc4513820c265f9efab9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756e6c2f7265762d6170692e737667)](https://packagist.org/packages/unl/rev-api)

rev\_api
========

[](#rev_api)

rev.com api in PHP

Examples
--------

[](#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:
------------------------

[](#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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~791 days

Total

4

Last Release

1551d ago

PHP version history (2 changes)v0.1-betaPHP &gt;=5.3.0

v0.2.0-betaPHP &gt;=7.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/498678?v=4)[Michael Fairchild](/maintainers/mfairchild365)[@mfairchild365](https://github.com/mfairchild365)

![](https://avatars.githubusercontent.com/u/446357?v=4)[Eric Rasmussen](/maintainers/ericras)[@ericras](https://github.com/ericras)

![](https://www.gravatar.com/avatar/6e031eb579cc69ba56d0e76d472cfe212a93ea180852d524e37ab12f0d12b02b?d=identicon)[macburgee1](/maintainers/macburgee1)

![](https://www.gravatar.com/avatar/1d20810c105e3896f6350ffdf288f8537cf2659284b016870a1f3db92a434c16?d=identicon)[jsturek8](/maintainers/jsturek8)

![](https://www.gravatar.com/avatar/668b4bc812e41e1fda204a60c369f696cf00d4818f3e2a22966e3b34f47f68b9?d=identicon)[tommyneu](/maintainers/tommyneu)

---

Top Contributors

[![mfairchild365](https://avatars.githubusercontent.com/u/498678?v=4)](https://github.com/mfairchild365 "mfairchild365 (48 commits)")[![kabel](https://avatars.githubusercontent.com/u/675956?v=4)](https://github.com/kabel "kabel (2 commits)")[![jsturek](https://avatars.githubusercontent.com/u/542037?v=4)](https://github.com/jsturek "jsturek (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/unl-rev-api/health.svg)

```
[![Health](https://phpackages.com/badges/unl-rev-api/health.svg)](https://phpackages.com/packages/unl-rev-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
