PHPackages                             way2enjoy/way2enjoy - 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. [API Development](/categories/api)
4. /
5. way2enjoy/way2enjoy

ActiveLibrary[API Development](/categories/api)

way2enjoy/way2enjoy
===================

PHP client for the Way2enjoy API. Way2enjoy compresses your images intelligently. Read more at https://way2enjoy.com.

2.0.10(7y ago)07011MITPHPPHP &gt;=5.3.0

Since Jul 8Pushed 7y agoCompare

[ Source](https://github.com/way2enjoy2/tinify-php)[ Packagist](https://packagist.org/packages/way2enjoy/way2enjoy)[ Docs](https://Way2enjoy.com/developers)[ RSS](/packages/way2enjoy-way2enjoy/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (20)Used By (1)

[![Build Status](https://camo.githubusercontent.com/7ac079ed962183cd41334b1abf31abce1950e93963ccc94ab118ca575e56b1df/68747470733a2f2f7472617669732d63692e6f72672f74696e6966792f74696e6966792d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tinify/tinify-php)

Tinify API client for PHP
=========================

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

PHP client for the Tinify API, used for [TinyPNG](https://tinypng.com) and [TinyJPG](https://tinyjpg.com). Tinify compresses your images intelligently. Read more at .

Documentation
-------------

[](#documentation)

[Go to the documentation for the PHP client](https://tinypng.com/developers/reference/php).

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

[](#installation)

Install the API client with Composer. Add this to your `composer.json`:

```
{
  "require": {
    "tinify/tinify": "*"
  }
}
```

Then install with:

```
composer install

```

Use autoloading to make the client available in PHP:

```
require_once("vendor/autoload.php");
```

Usage
-----

[](#usage)

```
Tinify\setKey("YOUR_API_KEY");
Tinify\fromFile("unoptimized.png")->toFile("optimized.png");
```

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

[](#running-tests)

```
composer install
vendor/bin/phpunit

```

### Integration tests

[](#integration-tests)

```
composer install
TINIFY_KEY=$YOUR_API_KEY vendor/bin/phpunit --no-configuration test/integration.php

```

License
-------

[](#license)

This software is licensed under the MIT License. [View the license](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 56.3% 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 ~80 days

Recently: every ~5 days

Total

18

Last Release

2585d ago

Major Versions

0.9.1 → 1.1.02015-08-28

1.5.2 → 2.0.12019-01-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/25b2e14ec5f4ea4d2bf22b9a667ab7f812c84a85eca7ba11ac4d324326508c07?d=identicon)[way2enjoy](/maintainers/way2enjoy)

---

Top Contributors

[![rolftimmermans](https://avatars.githubusercontent.com/u/78237?v=4)](https://github.com/rolftimmermans "rolftimmermans (58 commits)")[![way2enjoy2](https://avatars.githubusercontent.com/u/46526479?v=4)](https://github.com/way2enjoy2 "way2enjoy2 (43 commits)")[![michielverkoijen](https://avatars.githubusercontent.com/u/5121595?v=4)](https://github.com/michielverkoijen "michielverkoijen (2 commits)")

---

Tags

apicompressimagestinypngtinyjpgway2enjoy

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tinify/tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

2515.2M72](/packages/tinify-tinify)[tinify/magento2

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

4345.8k](/packages/tinify-magento2)[shortpixel/shortpixel-php

ShortPixel PHP SDK. Read more at https://shortpixel.com/api-tools

37531.5k10](/packages/shortpixel-shortpixel-php)[corsinvest/cv4pve-api-php

Corsinvest Proxmox VE Client API PHP

801.4M](/packages/corsinvest-cv4pve-api-php)[glooby/pexels

Pexels API Client for www.pexels.com

2731.6k1](/packages/glooby-pexels)[xchimx/laravel-unsplash

Laravel package for easy integration with the Unsplash API. It allows you to use the Unsplash API in your Laravel applications to fetch photos, collections, and user data.

246.6k](/packages/xchimx-laravel-unsplash)

PHPackages © 2026

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