PHPackages                             robopuff/tinypng - 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. robopuff/tinypng

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

robopuff/tinypng
================

Modern TinyPNG client for PHP

v1.0.1(4y ago)19851BSD-3-ClausePHPPHP ^7.4 || ^8.0

Since Nov 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/robopuff/tinypng)[ Packagist](https://packagist.org/packages/robopuff/tinypng)[ RSS](/packages/robopuff-tinypng/feed)WikiDiscussions master Synced 2w ago

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

[![Build Status](https://camo.githubusercontent.com/ed121d66cfa40bf5e5bd6f46509f93c397c166ff6a64dbd684bca82174c9732d/68747470733a2f2f7472617669732d63692e6f72672f726f626f707566662f74696e79706e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/robopuff/tinypng)

TinyPNG API client for PHP
==========================

[](#tinypng-api-client-for-php)

PHP client for the TinyPNG API, Read more at [official TinyPNG documentation](https://tinypng.com/developers/reference).

- [Documentation](https://robopuff.github.io/tinypng/)
- [Issues](https://github.com/robopuff/tinypng/issues)

To generate docs use [MKDocs](https://www.mkdocs.org/)

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

[](#installation)

```
composer require robopuff/tinypng
```

Usage
-----

[](#usage)

```
$tinyPng = new \TinyPng\TinyPng(new \TinyPng\Client\GuzzleClient('your_api_key'));
$tinyPng
    ->optimize(new \TinyPng\Input\Filesystem('unoptimized_image.png'))
    ->store(new \TinyPng\Output\Storage\Filesystem('optimized_image.png'));
```

Running tests
-------------

[](#running-tests)

```
composer test-suite
```

### Integration tests

[](#integration-tests)

```
TINYPNG_KEY=$YOUR_API_KEY composer test-integration
```

License
-------

[](#license)

This software is licensed under the BSD-3-Clause License. [View the license](LICENSE).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~416 days

Total

4

Last Release

1548d ago

Major Versions

v0.2.0 → v1.0.02021-04-23

PHP version history (3 changes)v0.1.1PHP ^7.1

v0.2.0PHP ^7.3

v1.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/730047?v=4)[Mateusz Łopaciński](/maintainers/robopuff)[@robopuff](https://github.com/robopuff)

---

Top Contributors

[![robopuff](https://avatars.githubusercontent.com/u/730047?v=4)](https://github.com/robopuff "robopuff (6 commits)")[![mateusz-lopacinski-tma](https://avatars.githubusercontent.com/u/228896196?v=4)](https://github.com/mateusz-lopacinski-tma "mateusz-lopacinski-tma (3 commits)")[![paragonie-scott](https://avatars.githubusercontent.com/u/11591518?v=4)](https://github.com/paragonie-scott "paragonie-scott (1 commits)")

---

Tags

php7tinifytinypng-apitinypngtinyjpgtinifytiny pngtiny-jpg

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/robopuff-tinypng/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[sylius/sylius

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

8.5k5.9M719](/packages/sylius-sylius)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)

PHPackages © 2026

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