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

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

msonowal/laravel-tinify
=======================

Laravel Facade for tinify API

1.0.4(4y ago)65.2k↑18.8%3[1 PRs](https://github.com/msonowal/laravel-tinify/pulls)MITPHPPHP &gt;=7.4

Since Mar 14Pushed 2y ago2 watchersCompare

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

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

laravel-tinify
==============

[](#laravel-tinify)

This package provides integration with the Tinify a.k.a TinyPNG API.

[![Latest Stable Version](https://camo.githubusercontent.com/b161c316a609863d23e66100570f7489040b7e688869d993df99ae05d6ca4014/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d74696e6966792f762f737461626c65)](https://packagist.org/packages/msonowal/laravel-tinify)[![Total Downloads](https://camo.githubusercontent.com/99820da505cb4eb77efd0d5d22eff4ce0f887965d8069a03ea02b45ac3580056/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d74696e6966792f646f776e6c6f616473)](https://packagist.org/packages/msonowal/laravel-tinify)

The package simply provides a Tinify facade that acts as a wrapper to the [tinify/tinfiy-php](https://github.com/tinify/tinify-php)

It was originaly developed by [Marvin Oßwald](https://github.com/marvinosswald/laravel-tinify)

I added functionality to use of laravel bulit in config cache helper which was having issues of returning null when configs are cached via `php artisan config:cache` because it was directly loading via `env` helper. So, I converted it to use the api\_key from config which can be defined to load from `env` and still use the `php artisan config:cache command` and it works.

### For Laravel &lt; 5.5, please use the [1.0.2 Tag](https://github.com/msonowal/laravel-tinify/tree/1.0.2)!

[](#for-laravel--55-please-use-the-102-tag)

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

[](#installation)

Install the package via Composer:

```
   composer require msonowal/laravel-tinify

```

### Laravel 5.5+:

[](#laravel-55)

If you don't use auto-discovery, add the ServiceProvider to the providers array in `config/app.php`

```
    ...
    msonowal\LaravelTinify\LaravelTinifyServiceProvider::class
    ...
```

Add alias to `config/app.php`:

```
    ...
    'Tinify' => msonowal\LaravelTinify\Facades\Tinify::class
    ...
```

Configuration
-------------

[](#configuration)

Publish the Configuration for the package which will create the config file tinify.php inside config directory

`php artisan vendor:publish --provider="msonowal\LaravelTinify\LaravelTinifyServiceProvider"`

Set a env variable "TINIFY\_APIKEY" with your issued apikey or set api\_key into config/tinify.php

This package is available under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

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

Total

5

Last Release

1557d ago

PHP version history (2 changes)1.0PHP &gt;=5.5.0

1.0.4PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![msonowal](https://avatars.githubusercontent.com/u/6334484?v=4)](https://github.com/msonowal "msonowal (8 commits)")[![bhavinjr](https://avatars.githubusercontent.com/u/30195960?v=4)](https://github.com/bhavinjr "bhavinjr (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

composer-packageslaravellaravel-5-packagetinyjpgtinypngwrappertinypngtinify

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[yasmuru/ys-tinify-laravel

Tinify API support for Laravel

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

PHPackages © 2026

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