PHPackages                             clownfish/client - 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. [Image &amp; Media](/categories/media)
4. /
5. clownfish/client

ActiveLibrary[Image &amp; Media](/categories/media)

clownfish/client
================

Image scaling with AWS S3 and Lambda

0309PHP

Since May 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ponyfleisch/clownfish-client-php)[ Packagist](https://packagist.org/packages/clownfish/client)[ RSS](/packages/clownfish-client/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

### usage

[](#usage)

```
$secret = 'sharedsecret';
$s3 = 'imghosting-foo';
$cloudfrontRoot = 'https://d2rrvpvpaaof6s.cloudfront.net';

// pass bucket name and region. credentials optional.
$service = new Clownfish\Service($s3, 'ap-southeast-1', ['key' => 'foo', 'secret' => 'bar']);

// upload image
$image = $service->uploadImage('foo.jpg', 'article', 1);

// originalFilename is your reference with which you can recreate the Image Object
$originalFilename = $image->getFilename();

// output scaled version
$image = new Clownfish\Image($originalFilename);

$scaledImage = $image->getScaledImage(100, 100, $secret);

$scaledUrl = $cloudfrontRoot . $scaledImage->getPath();

echo $scaledUrl."\n";
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/clownfish-client/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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