PHPackages                             artwl/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. [HTTP &amp; Networking](/categories/http)
4. /
5. artwl/tinify-laravel

ActiveLibrary[HTTP &amp; Networking](/categories/http)

artwl/tinify-laravel
====================

Tinify API support with laravel

3.0.0(3y ago)02821MITPHPPHP &gt;=5.5.0

Since Nov 15Pushed 3y agoCompare

[ Source](https://github.com/artwl/tinify-laravel)[ Packagist](https://packagist.org/packages/artwl/tinify-laravel)[ RSS](/packages/artwl-tinify-laravel/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

Tinify-laravel
==============

[](#tinify-laravel)

Tinify API support with laravel

[![Latest Version on Packagist](https://camo.githubusercontent.com/6463112dd8e2ba3b2ae8f6662bf3e286ecda62359fe49ec21a1d56daff250e15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617274776c2f74696e6966792d6c61726176656c2e7376673f7374796c653d666c61742d7371756172652674)](https://packagist.org/packages/artwl/tinify-laravel)

Install
-------

[](#install)

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

Config
------

[](#config)

Add this to your config/app.php

under "providers":

```
Artwl\LaravelTinify\LaravelTinifyServiceProvider::class,
```

under "aliases":

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

Set Tinypng APIKEY
------------------

[](#set-tinypng-apikey)

Set a env variable `TINIFY_APIKEY` in `.env` file with your tinypng api key.

Examples
--------

[](#examples)

### Compressing

[](#compressing)

```
use Tinify;

$result = Tinify::fromFile('\path\to\file');
$result -> toFile('\path\to\save');
```

### Resizing And Compressing

[](#resizing-and-compressing)

```
use Tinify;

$result = Tinify::fromFile('\path\to\file');
$result -> resize(array(
    "method" => "fit",
    "width" => 150,
    "height" => 100
));
$result -> toFile('\path\to\save');
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~594 days

Total

5

Last Release

1137d ago

Major Versions

v1.0.2 → 2.0.02020-03-29

2.0.0 → 3.0.02023-05-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/982563?v=4)[hw\_artwl](/maintainers/artwl)[@artwl](https://github.com/artwl)

---

Top Contributors

[![artwl](https://avatars.githubusercontent.com/u/982563?v=4)](https://github.com/artwl "artwl (14 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/artwl-tinify-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

The official AI SDK for Laravel.

1.0k3.2M186](/packages/laravel-ai)[api-platform/laravel

API Platform support for Laravel

59156.3k13](/packages/api-platform-laravel)[yasmuru/ys-tinify-laravel

Tinify API support with laravel

4136.2k](/packages/yasmuru-ys-tinify-laravel)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2038.9k](/packages/onlime-laravel-http-client-global-logger)

PHPackages © 2026

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