PHPackages                             tylerhall/smushit-php - 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. tylerhall/smushit-php

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

tylerhall/smushit-php
=====================

A PHP wrapper around Yahoo!'s Smush.it image compression web service.

1.0(12y ago)01261MITPHPPHP &gt;=5.3.0

Since Oct 22Pushed 12y agoCompare

[ Source](https://github.com/marcoraddatz/smushit-php)[ Packagist](https://packagist.org/packages/tylerhall/smushit-php)[ Docs](https://github.com/tylerhall/smushit-php)[ RSS](/packages/tylerhall-smushit-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (1)

smushit-php
===========

[](#smushit-php)

A PHP wrapper around Yahoo!'s [Smush.it image compression web service](http://www.smushit.com/ysmush.it/).

Given a URL to an image or a local image filename, this class will losslessly compress the image using Yahoo!'s Smush.it service and return the URL to the smushed image along with its meta information. It can optionally overwrite the local image file.

Much love to the Yahoo! [Exceptional Performance group](http://tech.groups.yahoo.com/group/exceptional-performance/) for a wonderful service :-)

EXAMPLES
--------

[](#examples)

```
$img = new SmushIt('http://some-domain.com/image.jpg');
print_r($img); // Will output...
// SmushIt Object
// (
//     [filename] =>
//     [url] => http://some-domain.com/image.jpg
//     [compressedUrl] => http://smushit.zenfs.com/results/dcd75d06/smush/image.jpg
//     [size] => 42517
//     [compressedSize] => 23063
//     [savings] => 45.76
//     [error] =>
// )

```

UPDATES
-------

[](#updates)

Code is hosted at GitHub:

LICENSE
-------

[](#license)

The MIT License

Copyright (c) 2009 Tyler Hall

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

4583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a2715a7b4e17b0ed07d23b300474f34d97d7abafbb602ec399f352a62f2e527?d=identicon)[marcoraddatz](/maintainers/marcoraddatz)

---

Top Contributors

[![marcoraddatz](https://avatars.githubusercontent.com/u/248815?v=4)](https://github.com/marcoraddatz "marcoraddatz (2 commits)")[![Kabytes](https://avatars.githubusercontent.com/u/272625?v=4)](https://github.com/Kabytes "Kabytes (1 commits)")[![laukstein](https://avatars.githubusercontent.com/u/183966?v=4)](https://github.com/laukstein "laukstein (1 commits)")

---

Tags

phpimage-optimizationsmushit

### Embed Badge

![Health badge](/badges/tylerhall-smushit-php/health.svg)

```
[![Health](https://phpackages.com/badges/tylerhall-smushit-php/health.svg)](https://phpackages.com/packages/tylerhall-smushit-php)
```

###  Alternatives

[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4868.9k](/packages/jkphl-iconizr)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[kiwilan/php-audio

PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.

3012.6k1](/packages/kiwilan-php-audio)[automattic/wistia-php

PHP wrapper for Wistia API

1431.9k](/packages/automattic-wistia-php)

PHPackages © 2026

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