PHPackages                             onlineuniconverter/onlineuniconverter-php - 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. onlineuniconverter/onlineuniconverter-php

ActiveLibrary[API Development](/categories/api)

onlineuniconverter/onlineuniconverter-php
=========================================

PHP SDK for OnlineUniConverter APIs

v2.0.0(5y ago)01MITPHPPHP ^7.2|^8.0

Since May 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Online-UniConverter/Online-UniConverter-php)[ Packagist](https://packagist.org/packages/onlineuniconverter/onlineuniconverter-php)[ RSS](/packages/onlineuniconverter-onlineuniconverter-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (14)Versions (2)Used By (0)

Online-UniConverter-php
=======================

[](#online-uniconverter-php)

> This is the official PHP SDK v2 for the [OnlineUniConverter](https://developer.media.io/api-introduction.html) *API v2*.

[![Tests](https://github.com/Online-UniConverter/Online-UniConverter-php/actions/workflows/run-tests.yml/badge.svg)](https://github.com/Online-UniConverter/Online-UniConverter-php/actions/workflows/run-tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/711c280935815effbbe1771788ec17ef14b3a8089fd1e74212c38069208f2374/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6c696e65756e69636f6e7665727465722f6f6e6c696e65756e69636f6e7665727465722d7068702f76)](//packagist.org/packages/onlineuniconverter/onlineuniconverter-php)[![Total Downloads](https://camo.githubusercontent.com/49d78a2234b51a4dca4d57b2a9e923ba0ebbb6e106bd9253b76fbf15b1922179/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6c696e65756e69636f6e7665727465722f6f6e6c696e65756e69636f6e7665727465722d7068702f646f776e6c6f616473)](//packagist.org/packages/onlineuniconverter/onlineuniconverter-php)[![Latest Unstable Version](https://camo.githubusercontent.com/1a5d18260703757855a2756eb03a4d3141cb6a231a81ad11aaf240f291c557ab/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6c696e65756e69636f6e7665727465722f6f6e6c696e65756e69636f6e7665727465722d7068702f762f756e737461626c65)](//packagist.org/packages/onlineuniconverter/onlineuniconverter-php)[![License](https://camo.githubusercontent.com/1f533cae1742912e6f739eefd1ecd8c41b74aaa9f0a90d2981a463f7b6522ead/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6c696e65756e69636f6e7665727465722f6f6e6c696e65756e69636f6e7665727465722d7068702f6c6963656e7365)](//packagist.org/packages/onlineuniconverter/onlineuniconverter-php)

Install
-------

[](#install)

To install the PHP SDK you will need to be using Composer in your project.

Install the SDK alongside Guzzle 7:

```
composer require onlineuniconverter/onlineuniconverter-php
```

This package is not tied to any specific HTTP client. Instead, it uses [Httplug](https://github.com/php-http/httplug) to let users choose whichever HTTP client they want to use.

If you want to use Guzzle 6 instead, use:

```
composer require onlineuniconverter/onlineuniconverter-php
```

You can use the [OnlineUniConverter Api](https://developer.media.io/api-introduction.html) to see the available options for the various task types.

Creating Import Tasks
---------------------

[](#creating-import-tasks)

```
use OnlineUniConverter\Models\Import;

// init
$import = (new Import('import/upload'));
$this->OnlineUniConverter->imports()->create($import);

// upload
$response = $this->OnlineUniConverter->imports()->upload($import, fopen(__DIR__ . '/files/单独.mov', 'r'), 'vid00084source.mov');
var_dump($response);

// info
$this->OnlineUniConverter->imports()->info($import);
var_dump($import);
```

Creating Convert Tasks
----------------------

[](#creating-convert-tasks)

```
use OnlineUniConverter\Models\Task;

// init
$task = (new Task('convert'))->set('input', 'jnthak3k-amuk-bj8l-cj7h-nn1yno4jty8i')->set('output_format', 'mp4');
$this->OnlineUniConverter->tasks()->create($task);
var_dump($task);

// info
$this->OnlineUniConverter->tasks()->info($task);
var_dump($task);
```

Creating Export Tasks
---------------------

[](#creating-export-tasks)

```
use OnlineUniConverter\Models\Common;
use OnlineUniConverter\Models\Export;

// init
$export = (new Export('export/url'))->set('input', '2w2y610m-awgo-bt8q-cq2p-981fu1w1bmr0');
$this->OnlineUniConverter->exports()->create($export);
var_dump($export);

// info
$this->OnlineUniConverter->exports()->info($export);
var_dump($export);

// download
$source = $this->OnlineUniConverter->getHttpTransport()->download($export->getResult()->files[0]->url)->detach();

$dest = tmpfile();
$destPath = stream_get_meta_data($dest)['uri'];
stream_copy_to_stream($source, $dest);
```

You can use the [OnlineUniConverter](https://developer.media.io/api-introduction.html) to see the available options for the various task types.

Unit Tests
----------

[](#unit-tests)

```
vendor/bin/phpunit --testsuite unit

```

Feature Tests
-------------

[](#feature-tests)

```
vendor/bin/phpunit --testsuite feature

```

By default, this runs the integration tests against the Sandbox API with an official OnlineUniConverter account. If you would like to use your own account, you can set your API key using the `ONLINEUNICONVERT_API_KEY` enviroment variable. In this case you need to whitelist the following MD5 hashes for Sandbox API (using the OnlineUniConverter dashboard).

```
684321sdfew31fsdfes6812381e2ewr2  input.mp4
68531sdfsdf684sefsd68465sdfesf28  input.png

```

Resources
---------

[](#resources)

- [API Documentation](https://developer.media.io/)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1866d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84499778?v=4)[Online Uniconverter](/maintainers/Online-UniConverter)[@Online-UniConverter](https://github.com/Online-UniConverter)

---

Top Contributors

[![Online-UniConverter](https://avatars.githubusercontent.com/u/84499778?v=4)](https://github.com/Online-UniConverter "Online-UniConverter (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onlineuniconverter-onlineuniconverter-php/health.svg)

```
[![Health](https://phpackages.com/badges/onlineuniconverter-onlineuniconverter-php/health.svg)](https://phpackages.com/packages/onlineuniconverter-onlineuniconverter-php)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27584.5k4](/packages/apigee-apigee-client-php)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M317](/packages/openai-php-client)[brd6/notion-sdk-php

Notion SDK for PHP

6123.0k](/packages/brd6-notion-sdk-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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