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

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

krisates/thumb-laravel55
========================

PHPThumb Package for Laravel 5.5 (Personal version) - Giovdi/laravel5-thumb fixed

127PHP

Since Mar 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/krisates/thumb-laravel55)[ Packagist](https://packagist.org/packages/krisates/thumb-laravel55)[ RSS](/packages/krisates-thumb-laravel55/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (1)Used By (0)

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

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

A simple Laravel 5 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 adding the repository and requiring the `giovdi/laravel5-thumb` package in your project's `composer.json`. This can be done by cli with the following commands:

```
composer config repositories.thumb5 vcs https://github.com/giovdi/laravel5-thumb
composer require giovdi/laravel5-thumb

```

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

Usage
-----

[](#usage)

**Up to Laravel 5.4**, 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::class
    )
```

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

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

**Since Laravel 5.5** this should be done automatically by installing the package through Composer.

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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/0ed73a0472235400b1e832110c60fe93859af56e3155570e6994faebcf7da949?d=identicon)[krisates](/maintainers/krisates)

---

Top Contributors

[![krisates](https://avatars.githubusercontent.com/u/8667395?v=4)](https://github.com/krisates "krisates (3 commits)")

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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