PHPackages                             mews/thumb - 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. mews/thumb

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

mews/thumb
==========

PHPThumb Package for Laravel 4 (Personal version)

131.4k6[2 issues](https://github.com/mewebstudio/Thumb/issues)[1 PRs](https://github.com/mewebstudio/Thumb/pulls)PHP

Since Jan 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/mewebstudio/Thumb)[ Packagist](https://packagist.org/packages/mews/thumb)[ RSS](/packages/mews-thumb/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PHPThumb for Laravel 4 (Personal version)
=========================================

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

A simple [Laravel 4](http://four.laravel.com/) service provider for including the [PHPThumb for Laravel 4](https://github.com/mewebstudio/Thumb).

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

[](#installation)

The PHPThumb Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `mews/phpthumb` package and setting the `minimum-stability` to `dev` (required for Laravel 4) in your project's `composer.json`.

```
{
    "require": {
        "laravel/framework": "4.0.*",
        "mews/thumb": "dev-master"
    },
    "minimum-stability": "dev"
}
```

Update your packages with `composer update` or install with `composer install`.

Usage
-----

[](#usage)

To use the PHPThumb Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the `providers` key in `app/config/app.php` and register the PHPThumb Service Provider.

```
    'providers' => array(
        // ...
        'Mews\Thumb\ThumbServiceProvider',
    )
```

Find the `aliases` key in `app/config/app.php`.

```
    'aliases' => array(
        // ...
        'Thumb' => 'Mews\Thumb\Facades\Thumb',
    )
```

Example
-------

[](#example)

```
    //[your site path]/app/routes.php

    Route::get('/media/image/{width}x{height}/{image}', function($width, $height, $image)
    {
        $file = base_path() . '/' . $image;
        // for remote file
        //$file = 'http://i.imgur.com/1YAaAVq.jpg';
        Thumb::create($file)->make('resize', array($width, $height))->show()->save(base_path() . '/', 'aaa.jpg');
        /*
            Thumb::create($file)->make('resize', array($width, $height))->make('crop', array('center', $width, $height))->show();
            Thumb::create($file)->make('resize', array($width, $height))->make('crop', array('basic', 100, 100, 300, 200))->show();
            Thumb::create($file)->make('resize', array($width, $height))->make('resize', array($width, $height))->show();
            Thumb::create($file)->make('resize', array($width, $height))->make('resize', array($width, $height, 'adaptive'))->save(base_path() . '/', 'aaa.jpg')->show();
            Thumb::create($file)->make('resize', array($width, $height))->rotate(array('degree', 180))->show();
            Thumb::create($file)->make('resize', array($width, $height))->reflection(array(40, 40, 80, true, '#a4a4a4'))->show();
            Thumb::create($file)->make('resize', array($width, $height))->save(base_path() . '/', 'aaa.jpg');
            Thumb::create($file)->make('resize', array($width, $height))->show();
        */

    });
```

^\_^

Links
-----

[](#links)

- [PHPThumb Library website](http://phpthumb.gxdlabs.com/)
- [L4 PHPThumb on Github](https://github.com/mewebstudio/Thumb)
- [L4 PHPThumb on Packagist](https://packagist.org/packages/mews/thumb)
- [License](http://www.opensource.org/licenses/mit-license.php)
- [Laravel website](http://laravel.com)
- [Laravel Turkiye website](http://www.laravel.gen.tr)
- [MeWebStudio website](http://www.mewebstudio.com)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/2125733?v=4)[MeWebStudio - Muharrem ERİN](/maintainers/mewebstudio)[@mewebstudio](https://github.com/mewebstudio)

---

Top Contributors

[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (2 commits)")[![connyay](https://avatars.githubusercontent.com/u/597300?v=4)](https://github.com/connyay "connyay (1 commits)")

### Embed Badge

![Health badge](/badges/mews-thumb/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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