PHPackages                             dumpk/elastcoder - 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. dumpk/elastcoder

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

dumpk/elastcoder
================

AWS Elastic Transcoder Service Integration

0.9.1(8y ago)2819.7k↓50%3[4 issues](https://github.com/dumpk/elastcoder/issues)MITPHP

Since Oct 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/dumpk/elastcoder)[ Packagist](https://packagist.org/packages/dumpk/elastcoder)[ Docs](http://github.com/dumpk/elastcoder)[ RSS](/packages/dumpk-elastcoder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

Elastcoder
==========

[](#elastcoder)

[![Build Status](https://camo.githubusercontent.com/0ba78956b7a7ffa9d72109251b7fc370c2cdb6ac437e9be40a347f6aa9245d46/68747470733a2f2f7472617669732d63692e6f72672f64756d706b2f656c617374636f6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dumpk/elastcoder)[![Latest Stable Version](https://camo.githubusercontent.com/5c515479fc34a6894702790988650a0ef66412aa053fe39b32084d7ab302b09c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64756d706b2f656c617374636f6465722e737667)](https://packagist.org/packages/dumpk/elastcoder)[![Author](https://camo.githubusercontent.com/0f5c9390b481f6ad0b45fc38209dd60326de3f185237792fb34ef66cf2d725ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d2534306e69636f6c6173626973746f6c66692d626c75652e737667)](https://twitter.com/nicolasbistolfi)

AWS Elastic Transcoder integration for Laravel. This is a simple wrapper if you don't want to go too deep with the [AWS SDK for PHP 3.x](http://docs.aws.amazon.com/aws-sdk-php/v3/api/index.html)!.

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

[](#installation)

Require this package with composer:

```
composer require dumpk/elastcoder

```

Add the service provider to your config/app.php file:

```
Dumpk\Elastcoder\ElastcoderServiceProvider::class

```

Publish config file by running :

```
php artisan vendor:publish --tag=elastcoder

```

Add this variables to your .env with your Amazon credentials

```
AWS_ACCESS_KEY_ID={AMAZONACCESSKEY}
AWS_SECRET_ACCESS_KEY={SECRETAMAZONSOMETHINGLONG}
AWS_REGION={YOURREGION}

```

Usage
-----

[](#usage)

Add the ElastcoderAWS class to your class header

```
use Dumpk\Elastcoder\ElastcoderAWS;
```

Now you just need to instance your class

```
$elastcoder = new ElastcoderAWS();
```

You'll need to have your video uploaded to S3 before using this library, so that means that you already have the key for the file you want to encode. The configuration has to look like:

```
$config = [
    'PresetId' => '432423-dsda',
    'width'  => 1920,
    'height' => 1080,
    'aspect' => '16:9',
	'ext'	 => 'mp4',
	'PipelineId' => '343244232-n2fuqq4',
    'Watermarks' => [[
        'PresetWatermarkId' => 'BottomRight',
        'InputKey'          => '1080.png',
    ]],
    'TimeSpan' => [
        'StartTime' => '0.4',
        'Duration'  => '5.3'
    ],
]
```

There's an example file you can throw in on your config folder in dumpk/elastcoder/example/elastcoder.php remember to change the values for the pipeline and presetId you want and you have configured on your AWS account.

So now you can call the transcoding function:

```
$job = $elastcoder->transcodeVideo($asset->key, $destinationKey, $config, $thumbPattern);
```

You can also transcode audio files like so :

```
$job = $elastcoder->transcodeAudio($inputfile,$uotputfile,$artwork)

```

This will return a job with an array, where you can find the "Id" of the Job, you'll need to check the job for completeness to know if your video is ready. Buy you already know that, so for your convienience you can use:

```
$job = $elastcoder->getJob($job["Id"]);
```

And check if $job\['Status'\] == 'complete'

Also you can change the ACL of your file, because you might want to give access to everyone to see your amazing video, so:

```
$elastcoder->setPublicObject($key, $bucket);
```

If you want to be more specific about that and have different types of permissions, you can use:

```
$elastcoder->setObjectACL($key, $bucket, $acl);
```

$acl can be a string with this values =&gt; private|public-read|public-read-write|authenticated-read|bucket-owner-read|bucket-owner-full-control

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

Every ~441 days

Total

3

Last Release

2972d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8db6bb5498d8e08ebe36388fb4ab7dd3f3054e696fe860e48beac82975e50c9?d=identicon)[nicolasbistolfi](/maintainers/nicolasbistolfi)

---

Top Contributors

[![nicobistolfi](https://avatars.githubusercontent.com/u/4433590?v=4)](https://github.com/nicobistolfi "nicobistolfi (20 commits)")[![Owen-oj](https://avatars.githubusercontent.com/u/13623015?v=4)](https://github.com/Owen-oj "Owen-oj (1 commits)")

---

Tags

laravelawstranscoderamazon elastic transcoder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dumpk-elastcoder/health.svg)

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

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[tenancy/tenancy

Creating multi tenant saas from your Laravel app with ease

1.3k43.6k](/packages/tenancy-tenancy)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[ankurk91/laravel-ses-webhooks

Handle AWS SES webhooks in Laravel php framework

2534.2k](/packages/ankurk91-laravel-ses-webhooks)[arubacao/aws-ip-range-middleware

Laravel Middleware for Amazon Web Services (AWS) IP Address Range

172.3k](/packages/arubacao-aws-ip-range-middleware)[pluginscart/dynamodb-php

Access AWS DynamoDB through simpler interface in PHP.

1114.0k](/packages/pluginscart-dynamodb-php)

PHPackages © 2026

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