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

ActiveLibrary

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 3d 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 19% 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://www.gravatar.com/avatar/363636fa411aa6014155a6e2458e8cd1fc543944099839cc5b96e4e2f8554884?d=identicon)[matteoantoci](/maintainers/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)
```

PHPackages © 2026

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