PHPackages                             mhor/php-mediainfo - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mhor/php-mediainfo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mhor/php-mediainfo
==================

PHP wrapper around the mediainfo command

5.8.0(4mo ago)120574.8k—2.2%23[7 issues](https://github.com/mhor/php-mediainfo/issues)[1 PRs](https://github.com/mhor/php-mediainfo/pulls)7MITPHPPHP &gt;=7.4CI passing

Since Dec 14Pushed 4mo ago7 watchersCompare

[ Source](https://github.com/mhor/php-mediainfo)[ Packagist](https://packagist.org/packages/mhor/php-mediainfo)[ RSS](/packages/mhor-php-mediainfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (47)Used By (7)

Php-MediaInfo [![Coverage Status](https://camo.githubusercontent.com/c2998eedf8f192a9ce0401695ab9619a00215ba8bada4db09aaed60ffcfca37a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d686f722f7068702d6d65646961696e666f2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mhor/php-mediainfo?branch=master) [![Packagist](https://camo.githubusercontent.com/a49a06be642118078e4860968318280b767b1c80eb52b58fe4aa82a7e2925479/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d686f722f7068702d6d65646961696e666f2e737667)](https://packagist.org/packages/mhor/php-mediainfo) [![Packagist](https://camo.githubusercontent.com/9a509a02df672afc7d390d39f3f85b0c15ab30dc0da7edabbc4cbae35c819771/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d686f722f7068702d6d65646961696e666f2e737667)](https://packagist.org/packages/mhor/php-mediainfo) [![Code Checks](https://github.com/mhor/php-mediainfo/actions/workflows/code_checks.yml/badge.svg)](https://github.com/mhor/php-mediainfo/actions/workflows/code_checks.yml)
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-mediainfo----)

Introduction
------------

[](#introduction)

PHP wrapper around the `mediainfo` command

Table of contents:
------------------

[](#table-of-contents)

- [Installation](#installation)
- [How to use](#how-to-use)
- [Specials types](#specials-types)
- [Extra](#extra)
- [License](#license)

Installation
------------

[](#installation)

### 1 - Install mediainfo

[](#1---install-mediainfo)

You should install [mediainfo](http://manpages.ubuntu.com/manpages/gutsy/man1/mediainfo.1.html):

#### On linux:

[](#on-linux)

```
$ sudo apt-get install mediainfo
```

#### On Mac:

[](#on-mac)

```
$ brew install mediainfo
```

### 2 - Integration in your php project

[](#2---integration-in-your-php-project)

To use this library install it through [Composer](https://getcomposer.org/), run:

```
$ composer require mhor/php-mediainfo
```

How to use
----------

[](#how-to-use)

### Retrieve media information container

[](#retrieve-media-information-container)

```
