PHPackages                             nidhalkratos/laravel-coconut-v2 - 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. nidhalkratos/laravel-coconut-v2

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

nidhalkratos/laravel-coconut-v2
===============================

A Wrapper around coconut transcoding library for laravel

0.0.4(3mo ago)04.3k6MITPHPPHP ^8.1

Since Dec 17Pushed 3mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/884fb9b06d83fb9ac891f9816f57d7956b2c0db6e4e526a3bfe9c87197e57b68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e696468616c6b7261746f732f6c61726176656c2d636f636f6e75742d76322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nidhalkratos/laravel-coconut-v2)[![Total Downloads](https://camo.githubusercontent.com/885acf99bcc49f2443a1c252185175a01dd7053b6a16afc1f38e0db1800538c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e696468616c6b7261746f732f6c61726176656c2d636f636f6e75742d76322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nidhalkratos/laravel-coconut-v2)

A laravel wrapper package for coconut transcoding api. Check the official php library at `https://github.com/opencoconut/coconutphp` for more

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

[](#installation)

You can install the package via composer:

```
composer require nidhalkratos/laravel-coconut-v2
```

Usage
-----

[](#usage)

Set these environment variables to let coconut connect to the gcs bucket

```
# .env
COCONUT_API_KEY=
COCONUT_GCS_BUCKET=
COCONUT_GCS_KEY=
COCONUT_GCS_SECRET=
```

The package will fire an event whenever a coconut sends a notification and thus you need to create a listeners for the event to fire whenever the event is fired Coconut will send webhook events to the route named coconut.callback (Created by the package)

```
// Create a coconut instance
$coconut = app('coconut');
$coconut->notification = [
    'type' => 'http',
    'url' =>  route('coconut.callback',$this->id),
    'metadata' => true
];

//Parameters
$jobParams = [
    'input' => ['url' => $this->rawUrl()],
    'outputs' => [
        'jpg:720x' => Storage::disk('gcs')->path($this->THUMBNAIL_DIRECTORY_PATH . $this->id . '.jpg')
    ]
];

//Create the job
$job = $coconut->job->create($jobParams);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nidhal Abidi](https://github.com/nidhalkratos)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance81

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Every ~502 days

Total

4

Last Release

100d ago

PHP version history (2 changes)0.0.1PHP ^7.4|^8.0

0.0.4PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/30024ad4ec127a94cf07b7d5d22b0292f851fb62078e4bb5a1278b4a84ee9e36?d=identicon)[nidhalkratos](/maintainers/nidhalkratos)

---

Top Contributors

[![nidhalkratos](https://avatars.githubusercontent.com/u/10298337?v=4)](https://github.com/nidhalkratos "nidhalkratos (5 commits)")

---

Tags

nidhalkratoslaravel-coconut-v2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nidhalkratos-laravel-coconut-v2/health.svg)

```
[![Health](https://phpackages.com/badges/nidhalkratos-laravel-coconut-v2/health.svg)](https://phpackages.com/packages/nidhalkratos-laravel-coconut-v2)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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