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

ActiveLibrary

amphibee/laravel-coconut
========================

A Wrapper around coconut transcoding library for laravel

1.0.1(2y ago)21.4k2MITPHPPHP ^8.1|^8.2

Since Dec 20Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

Laravel Coconut
===============

[](#laravel-coconut)

[![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 amphibee/laravel-coconut
```

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=
```

or these one if you use FTP

```
# .env
COCONUT_STORAGE_PUBLIC_HOST=
COCONUT_FTP_STORAGE_URL=
```

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)

- `v1.0` Laravel 10 compatibility
- `v1.0.1` Added ftp and coconut storage, update route event

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.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~48 days

Total

2

Last Release

1016d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8435080f3e74b629258f291a62cb72aa9d63ee44d74e588f594dc6378c328fa2?d=identicon)[amphibee](/maintainers/amphibee)

---

Top Contributors

[![nidhalkratos](https://avatars.githubusercontent.com/u/10298337?v=4)](https://github.com/nidhalkratos "nidhalkratos (4 commits)")[![ahacart-adexos](https://avatars.githubusercontent.com/u/48205019?v=4)](https://github.com/ahacart-adexos "ahacart-adexos (1 commits)")[![ogorzalka](https://avatars.githubusercontent.com/u/149651?v=4)](https://github.com/ogorzalka "ogorzalka (1 commits)")

---

Tags

amphibeenidhalkratoslaravel-coconut

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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