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

ActiveLibrary[API Development](/categories/api)

michaelthuren/tinify-laravel-client
===================================

Tinify API support with laravel (TinyPNG)

9.0.0(4y ago)24.3k2[1 PRs](https://github.com/michaelthuren/tinify-laravel-client/pulls)MITPHPPHP ^8.0

Since May 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/michaelthuren/tinify-laravel-client)[ Packagist](https://packagist.org/packages/michaelthuren/tinify-laravel-client)[ RSS](/packages/michaelthuren-tinify-laravel-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Tinify Laravel Client
=====================

[](#tinify-laravel-client)

Supported laravel versions 9+

Install
-------

[](#install)

```
$ composer require michaelthuren/tinify-laravel-client
```

Add this to your config/app.php,

under "providers":

```
michaelthuren\tinify-laravel-client\TinifyLaravelServiceProvider::class,
```

under "aliases":

```
'Tinify' => michaelthuren\tinify-laravel-client\Facades\Tinify::class
```

And set a env variable `TINIFY_APIKEY` with your TinyPNG API key.

If you want to directly upload the image to `aws s3`, you need set the env variables of following with your aws s3 credentials.

```
S3_KEY=
S3_SECRET=
S3_REGION=
S3_BUCKET=
```

Examples
--------

[](#examples)

```
$result = Tinify::fromFile('\path\to\file');

$result = Tinify::fromBuffer($source_data);

$result = Tinify::fromUrl($image_url);

/** To save as File **/
$result->toFile('\path\to\save');

/** To get image as data **/
$data = $result->toBuffer();
```

```
$s3_result = Tinify::fileToS3('\path\to\file', $s3_bucket_name, '/path/to/save/in/bucket');

$s3_result = Tinify::bufferToS3($source_data, $s3_bucket_name, '/path/to/save/in/bucket');

$s3_result = Tinify::urlToS3($image_url, $s3_bucket_name, '/path/to/save/in/bucket');

/** To get the url of saved image **/
$s3_image_url = $s3_result->location();
$s3_image_width = $s3_result->width();
$s3_image_hight = $s3_result->height();
```

`NOTE:` All the images directly save to s3 is publicably readable. And you can set permissions for s3 bucket folder in your aws console to make sure the privacy of images.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~160 days

Total

5

Last Release

1532d ago

Major Versions

6.0.1 → 7.0.02020-06-26

7.0.0 → 8.0.02020-09-30

8.0.0 → 9.0.02022-03-02

PHP version history (3 changes)v6.0PHP &gt;=7.2.0

7.0.0PHP ^7.2

9.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![michaelthuren](https://avatars.githubusercontent.com/u/3227719?v=4)](https://github.com/michaelthuren "michaelthuren (12 commits)")[![mithatcanakgun](https://avatars.githubusercontent.com/u/11079314?v=4)](https://github.com/mithatcanakgun "mithatcanakgun (1 commits)")

---

Tags

clientlaraveltinypngtinify

### Embed Badge

![Health badge](/badges/michaelthuren-tinify-laravel-client/health.svg)

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

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[macsidigital/laravel-zoom

Laravel Zoom package

268375.9k](/packages/macsidigital-laravel-zoom)[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[gemini-api-php/laravel

Gemini API client for Laravel

8915.7k](/packages/gemini-api-php-laravel)[yasmuru/ys-tinify-laravel

Tinify API support with laravel

4136.0k](/packages/yasmuru-ys-tinify-laravel)

PHPackages © 2026

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