PHPackages                             jackal/giffhanger - 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. jackal/giffhanger

AbandonedArchivedProject

jackal/giffhanger
=================

v0.2.8(5y ago)059MITPHPPHP &gt;=7.1

Since Mar 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lucajackal85/Giffhanger)[ Packagist](https://packagist.org/packages/jackal/giffhanger)[ RSS](/packages/jackal-giffhanger/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (6)Versions (12)Used By (0)

Giffhanger
==========

[](#giffhanger)

[![Latest Stable Version](https://camo.githubusercontent.com/4e6285b11665e15c1fbd84df000ffb720715e95ab3960333f3514a453081c7aa/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b616c2f6769666668616e6765722f762f737461626c65)](https://packagist.org/packages/jackal/giffhanger)[![Total Downloads](https://camo.githubusercontent.com/1af45e68ca332449c4bbbf2d73a34e1fee29a08753fe89a3b586a91b4caabb65/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b616c2f6769666668616e6765722f646f776e6c6f616473)](https://packagist.org/packages/jackal/giffhanger)[![Latest Unstable Version](https://camo.githubusercontent.com/edbc35b74daf67ff1411d4a02da59c799fec10191951a6b6f5bfe5e87d80598f/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b616c2f6769666668616e6765722f762f756e737461626c65)](https://packagist.org/packages/jackal/giffhanger)[![License](https://camo.githubusercontent.com/3bd3278176aa4f65784cb4b1420d506fa6f498e08bc836a319d7c77e684bc2ec/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b616c2f6769666668616e6765722f6c6963656e7365)](https://packagist.org/packages/jackal/giffhanger)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d01d1d4ba6003eafa9a424d3c8b6b0dbeae154a7a181efb8dbfa421a2ebd936f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c7563616a61636b616c38352f4769666668616e6765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lucajackal85/Giffhanger/?branch=master)[![Build Status](https://camo.githubusercontent.com/5efd42bf1e24ecf846c66b6bb2c58b8a0907702e55987b1f896cdf44cb44d6ad/68747470733a2f2f7472617669732d63692e6f72672f6c7563616a61636b616c38352f4769666668616e6765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lucajackal85/Giffhanger)

#### (play on words: from ["Cliffhanger"](https://en.wikipedia.org/wiki/Cliffhanger))

[](#play-on-words-from-cliffhanger)

It generates Video previews in GIF or Video format. To use this library you need ffmpeg executable installed

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

[](#installation)

```
composer require jackal/giffhanger

```

Usage
-----

[](#usage)

Minimal example

```
$giffhanger = new Giffhanger('/path/to/video/file',[
    'output_dimension' => 320
]);
//to generate gif
$giffhanger->generate('/path/to/output.gif');

//to generate video
$giffhanger->generate('/path/to/output.avi');

```

Options
-------

[](#options)

- **resize\_width**: resize width (in pixels) of the output file \[default: **640**\]
- **crop\_ratio**: crop the video following the value passed \[default crop is not applied\]
- **temp\_dir**: define the temp directory used to generate the output file \[default is **system temp directory**\]
- **frames**: number of "pieces" taken to build the preview \[default is **3**\]
- **duration**: duration (in seconds) of the preview \[default is **6**\]
- **bitrate**: bitrate of the video (used only in case of mp4 output) \[default **600**\]
- **frame\_rate**: framerate of the output \[default **10**\]

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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 ~9 days

Recently: every ~18 days

Total

10

Last Release

2159d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13db4a2702d54af2cbbce04c934f80cddd423fc7a8ad12124cae6459b39e3a05?d=identicon)[lucajackal85](/maintainers/lucajackal85)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jackal-giffhanger/health.svg)

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

###  Alternatives

[symfony/form

Allows to easily create, process and reuse HTML forms

2.8k152.1M2.8k](/packages/symfony-form)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[symfony/rate-limiter

Provides a Token Bucket implementation to rate limit input and output in your application

26847.2M147](/packages/symfony-rate-limiter)

PHPackages © 2026

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