PHPackages                             opencoconut/coconut - 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. opencoconut/coconut

ActiveLibrary[API Development](/categories/api)

opencoconut/coconut
===================

Coconut is a Cloud Video Encoding Service built for developers

3.0.3(4y ago)17482.5k—0.4%8[3 issues](https://github.com/opencoconut/coconutphp/issues)2MITPHPCI failing

Since Jan 28Pushed 1y ago3 watchersCompare

[ Source](https://github.com/opencoconut/coconutphp)[ Packagist](https://packagist.org/packages/opencoconut/coconut)[ Docs](https://coconut.co)[ RSS](/packages/opencoconut-coconut/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (9)Used By (2)

Coconut PHP Library
===================

[](#coconut-php-library)

The Coconut PHP library provides access to the Coconut API for encoding videos, packaging media files into HLS and MPEG-Dash, generating thumbnails and GIF animation.

This library is only compatible with the Coconut API v2.

Documentation
-------------

[](#documentation)

See the [full documentation](https://docs.coconut.co).

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

[](#installation)

To install the Coconut PHP library, you need [composer](http://getcomposer.org) first:

```
curl -sS https://getcomposer.org/installer | php
```

Edit `composer.json`:

```
{
    "require": {
        "opencoconut/coconut": "3.*"
    }
}
```

Install the depencies by executing `composer`:

```
php composer.phar install
```

Usage
-----

[](#usage)

The library needs you to set your API key which can be found in your [dashboard](https://app.coconut.co/api). Webhook URL and storage settings are optional but are very convenient because you set them only once.

```
