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(4y ago)01MITPHPPHP ^7.2|^8.0

Since May 26Pushed 4y 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 yesterday

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

1813d 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.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[j0k3r/graby

Graby helps you extract article content from web pages

384349.6k2](/packages/j0k3r-graby)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[cloudconvert/cloudconvert-php

PHP SDK for CloudConvert APIs

2223.4M7](/packages/cloudconvert-cloudconvert-php)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)

PHPackages © 2026

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