PHPackages                             matteoantoci/phpthumb - 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. matteoantoci/phpthumb

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

matteoantoci/phpthumb
=====================

Easy thumbnailing in Laravel 4

0131PHP

Since Dec 20Pushed 12y agoCompare

[ Source](https://github.com/matteoantoci/phpThumb)[ Packagist](https://packagist.org/packages/matteoantoci/phpthumb)[ RSS](/packages/matteoantoci-phpthumb/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpThumb for Laravel 4
======================

[](#phpthumb-for-laravel-4)

This is the [phpThumb](https://github.com/JamesHeinrich/phpThumb) library wrapped inside a Laravel 4 package.

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

[](#installation)

Add [this](https://packagist.org/packages/matteoantoci/phpthumb) package to your composer.json

Add this service provider in /app/config/app.php

```
    'Matteoantoci\Phpthumb\PhpthumbServiceProvider',

```

Use
---

[](#use)

A new route will be created /phpthumb

Use the library as described [here](http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php)

phpThumb Helper
---------------

[](#phpthumb-helper)

Add this alias in /app/config/app.php to use phpThumb Helper in your templates.

```
    'phpThumb' => 'Matteoantoci\Phpthumb\PhpthumbHelper'

```

The helper class consist on a single static function with this parameters:

```
    get($img, $w = "", $h = "", $crop = true, $params = array())

```

- $img -&gt; path of image
- $w -&gt; max width
- $h -&gt; max height
- $crop -&gt; if you want to use zoom-crop feature (true by default)
- $params -&gt; array of additional parameters. Eg: 'fltr\[\]=gray'

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1440303?v=4)[Matteo Antoci](/maintainers/matteoantoci)[@matteoantoci](https://github.com/matteoantoci)

---

Top Contributors

[![matteoantoci](https://avatars.githubusercontent.com/u/1440303?v=4)](https://github.com/matteoantoci "matteoantoci (5 commits)")

### Embed Badge

![Health badge](/badges/matteoantoci-phpthumb/health.svg)

```
[![Health](https://phpackages.com/badges/matteoantoci-phpthumb/health.svg)](https://phpackages.com/packages/matteoantoci-phpthumb)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)[yk/laravel-ocr

A wrapper for gocr.

1356.6k](/packages/yk-laravel-ocr)

PHPackages © 2026

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