You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# PHP client library for encoding videos with Coconut
1
+
# Coconut PHP Library
2
2
3
-
## Install
3
+
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.
4
+
5
+
This library is only compatible with the Coconut API v2.
6
+
7
+
## Documentation
8
+
9
+
See the [full documentation](https://docs.coconut.co).
10
+
11
+
## Installation
4
12
5
13
To install the Coconut PHP library, you need [composer](http://getcomposer.org) first:
6
14
@@ -13,7 +21,7 @@ Edit `composer.json`:
13
21
```javascript
14
22
{
15
23
"require": {
16
-
"opencoconut/coconut":"2.*"
24
+
"opencoconut/coconut":"3.*"
17
25
}
18
26
}
19
27
```
@@ -24,101 +32,71 @@ Install the depencies by executing `composer`:
24
32
php composer.phar install
25
33
```
26
34
27
-
## Submitting the job
28
-
29
-
Use the [API Request Builder](https://app.coconut.co/job/new) to generate a config file that match your specific workflow.
30
-
31
-
Example of `coconut.conf`:
35
+
## Usage
32
36
33
-
```ini
34
-
var s3 = s3://accesskey:secretkey@mybucket
35
-
36
-
set webhook = http://mysite.com/webhook/coconut?videoID=$vid
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.
You can also create a job without a config file. To do that you will need to give every settings in the method parameters. Here is the exact same job but without a config file:
0 commit comments