PHPackages                             gtuk/php-lepton - 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. gtuk/php-lepton

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

gtuk/php-lepton
===============

A php wrapper library for Dropbox Lepton compression tool

1.0(9y ago)18431MITPHPPHP &gt;=5.5

Since Jul 24Pushed 9y ago2 watchersCompare

[ Source](https://github.com/gtuk/php-lepton)[ Packagist](https://packagist.org/packages/gtuk/php-lepton)[ RSS](/packages/gtuk-php-lepton/feed)WikiDiscussions master Synced 4w ago

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

PHPLepton
=========

[](#phplepton)

A php wrapper library for Dropbox Lepton compression tool.

**This guide assumes you have Dropbox Lepton installed.**

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

[](#installation)

You can install this library with composer or include it manually in your project.

Quick start
-----------

[](#quick-start)

```
 $lepton = new Lepton('');
```

After this you can run one of two commands, compress or decompress. If the compression or decompression failed Lepton will throw an Exception, otherwise it returns TRUE.

```
$options = array(
);

$result = $lepton->compress(
    'example.jpg',
    'example.lep',
    $options
);

$result = $lepton->decompress(
    'example.lep',
    'example.jpg',
    $options
);
```

\##Available Options

```
$options = array(
 '-unjailed',
 '-singlethread',
 '-maxchildren',
 '-preload',
 '-unkillable',
 '-allowprogressive',
 '-zlib0',
 '-timebound=ms',
 '-trunc=',
 '-memory=M',
 '-threadmemory=M',
 '-hugepages',
 '-avx2upgrade',
 '-injectsyscall={1..4}',
 '-socket',
 '-socket=',
 '-listen',
 '-listen=',
 '-zliblisten',
 '-zliblisten=',
 '-recodememory=M'
);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3628d ago

### Community

Maintainers

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

---

Top Contributors

[![gtuk](https://avatars.githubusercontent.com/u/7408342?v=4)](https://github.com/gtuk "gtuk (1 commits)")

---

Tags

phpcompressionjpegjpgdropboxdecompressionleptonlep

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gtuk-php-lepton/health.svg)

```
[![Health](https://phpackages.com/badges/gtuk-php-lepton/health.svg)](https://phpackages.com/packages/gtuk-php-lepton)
```

###  Alternatives

[choowx/rasterize-svg

A PHP library for converting SVG to JPEG, PNG, and WEBP

2275.4k](/packages/choowx-rasterize-svg)[kinglozzer/tinypng

TinyPNG PHP API

1294.3k2](/packages/kinglozzer-tinypng)

PHPackages © 2026

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