PHPackages                             evidenceekanem/tinify-laravel - 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. evidenceekanem/tinify-laravel

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

evidenceekanem/tinify-laravel
=============================

Tinify API support with laravel

v1.0.6(3y ago)286MITPHPPHP &gt;=7.2

Since Nov 15Pushed 3y agoCompare

[ Source](https://github.com/EvidenceEkanem/evidenceekanem-tinify-laravel)[ Packagist](https://packagist.org/packages/evidenceekanem/tinify-laravel)[ RSS](/packages/evidenceekanem-tinify-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

evidenceekanem/tinify-laravel
=============================

[](#evidenceekanemtinify-laravel)

Tinify API support with laravel

[![Latest Version on Packagist](https://camo.githubusercontent.com/a0cbc262152fc41aba9851520f1656524dbac0079f48b6cccab012316b60117f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65766964656e6365656b616e656d2f74696e6966792d6c61726176656c3f6c6162656c3d76657273696f6e)](https://packagist.org/packages/evidenceekanem/tinify-laravel)[![Total Downloads](https://camo.githubusercontent.com/fd5256be332c74b87fa8cb4b15c66e57c8c168287b1d01a9e4d569e31613dadf/687474703a2f2f706f7365722e707567782e6f72672f65766964656e6365656b616e656d2f74696e6966792d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/evidenceekanem/tinify-laravel)[![License](https://camo.githubusercontent.com/527b36e6c97eac076517816f78c309b29bedea59bdd984c139f92d9785cea4e4/687474703a2f2f706f7365722e707567782e6f72672f65766964656e6365656b616e656d2f74696e6966792d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/evidenceekanem/tinify-laravel)

Install
-------

[](#install)

```
$ composer require evidenceekanem/tinify-laravel
```

Add this to your config/app.php,

under "providers":

```
    evidenceekanem\LaravelTinify\LaravelTinifyServiceProvider::class,
```

under "aliases":

```
    'Tinify' => evidenceekanem\LaravelTinify\Facades\Tinify::class
```

And set a env variable `TINIFY_API_KEY` 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.

```
    AWS_ACCESS_KEY_ID=
    AWS_SECRET_ACCESS_KEY=
    AWS_DEFAULT_REGION=
    AWS_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', $AWS_BUCKET_name, '/path/to/save/in/bucket');

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

	$s3_result = Tinify::urlToS3($image_url, $AWS_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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 65.2% 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 ~337 days

Recently: every ~397 days

Total

7

Last Release

1443d ago

PHP version history (2 changes)v1.0PHP &gt;=5.5.0

v1.0.3PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7403aabd1434b5ed75798c5bde4162d6a2338a8c34b61132071f6279d2637d27?d=identicon)[evidenceekanem](/maintainers/evidenceekanem)

---

Top Contributors

[![EvidenceEkanem](https://avatars.githubusercontent.com/u/43958700?v=4)](https://github.com/EvidenceEkanem "EvidenceEkanem (15 commits)")[![yasmuru](https://avatars.githubusercontent.com/u/4990447?v=4)](https://github.com/yasmuru "yasmuru (7 commits)")[![muruganstr](https://avatars.githubusercontent.com/u/20831486?v=4)](https://github.com/muruganstr "muruganstr (1 commits)")

---

Tags

laraveltinypngtinify

### Embed Badge

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

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

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[yasmuru/ys-tinify-laravel

Tinify API support with laravel

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

Image compression for all pngs and jpgs uploaded to the backend (using the tinypng API)

16125.5k](/packages/schmitzal-tinyimg)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)

PHPackages © 2026

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