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

ActiveLibrary

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

Tinify API support with laravel

3.0.0(2y ago)02531MITPHPPHP &gt;=5.5.0

Since Nov 15Pushed 2y 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 5d 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 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

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

1091d ago

Major Versions

v1.0.2 → 2.0.02020-03-29

2.0.0 → 3.0.02023-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/f656d715727ef21723d1e89ec7630cfe5b90e5a8677b98b017dc36883a0ff84a?d=identicon)[artwl](/maintainers/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

[yasmuru/ys-tinify-laravel

Tinify API support with laravel

4136.0k](/packages/yasmuru-ys-tinify-laravel)[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)[schmitzal/tinyimg

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

16125.5k](/packages/schmitzal-tinyimg)

PHPackages © 2026

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