PHPackages                             lostfocus/thumbor-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. lostfocus/thumbor-php

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

lostfocus/thumbor-php
=====================

Thumbor library for PHP

2.1.0(1mo ago)02↓90%MITPHPPHP ^8.0CI passing

Since Jun 26Pushed 1mo agoCompare

[ Source](https://github.com/lostfocus/thumbor-php)[ Packagist](https://packagist.org/packages/lostfocus/thumbor-php)[ Docs](https://github.com/lostfocus/thumbor-php)[ RSS](/packages/lostfocus-thumbor-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (4)Versions (9)Used By (0)

Thumbor PHP
===========

[](#thumbor-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/400dccba1dd61ae54ce9102f01acd54a026f09fbf2fc5ef94677b694133f5831/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f7374666f6375732f7468756d626f722d706870)](https://packagist.org/packages/lostfocus/thumbor-php)[![Supported PHP Versions](https://camo.githubusercontent.com/dc2c69729a1fabd9875498f310002d3c869ac42cdfae9630ada642be99d26db2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6c6f7374666f6375732f7468756d626f722d7068702f7068702e737667)](https://packagist.org/packages/lostfocus/thumbor-php)[![Packagist Downloads](https://camo.githubusercontent.com/18b4ff49cbea4f32aabc821db83d8d5b21672ce8fe86a12b59a9e4f11b47bbed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f7374666f6375732f7468756d626f722d706870)](https://packagist.org/packages/lostfocus/thumbor-php)

This is a fork of the [excellent Thumbor PHP by Alexander Tebiev](https://github.com/beeyev/thumbor-php), a PHP implementation of URL generator for [Thumbor](http://www.thumbor.org/).
It's mostly for myself to keep it up to date with new PHP versions.

> This package has laravel support, and brings its conveniences like Facade and Service Provider.
> At the same time, it was made to be filly functional as framework-agnostic.

Supported PHP versions: `7.0 - 8.5`

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

[](#installation)

Require this package with composer using the following command:

```
composer require lostfocus/thumbor-php
```

#### Laravel

[](#laravel)

This package will be automatically registered using Laravel auto-discovery mechanism.
Publish the config file of this package with this command. It will generate config file `config/thumbor.php`, look at this file to set the required parameters.

```
php artisan vendor:publish --provider="Beeyev\Thumbor\Adapters\Laravel\ThumborServiceProvider" --tag=config
```

Usage examples
--------------

[](#usage-examples)

#### Laravel using dependency injection

[](#laravel-using-dependency-injection)

```
use Beeyev\Thumbor\Thumbor;

public function someMethod(Thumbor $thumbor)
{
    $result = $thumbor->resizeOrFit(200,500)->get('http://seriouscat.com/serious_cat.jpg');
}
```

#### Laravel using facade

[](#laravel-using-facade)

```
use Beeyev\Thumbor\Manipulations\Fit;
use Beeyev\Thumbor\Manipulations\Trim;

public function someMethod()
{
    $result = \Thumbor::addFilter('blur', 3)
        ->resizeOrFit(500, 300, Fit::FIT_IN)
        ->trim(Trim::BOTTOM_RIGHT)
        ->get('http://seriouscat.com/serious_cat.jpg');
}
```

#### Some more framework-agnostic examples

[](#some-more-framework-agnostic-examples)

```
use Beeyev\Thumbor\Thumbor;
use Beeyev\Thumbor\Manipulations\Resize;
use Beeyev\Thumbor\Manipulations\Filter;

public function someMethod()
{
    $thumbor = new Thumbor('https://thumbor.findtheinvisiblecow.com/', 'secretKey555');
    $thumbor->addFilter(Filter::STRIP_EXIF);
    $thumbor->addFilter(Filter::BLUR, 1);
    $thumbor->resizeOrFit(500, Resize::ORIG);
    $thumbor->smartCrop();
    $thumbor->imageUrl('http://seriouscat.com/serious_cat.jpg');

    return $thumbor->get();
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/beeyev/thumbor-php/raw/master/LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~287 days

Recently: every ~320 days

Total

6

Last Release

50d ago

Major Versions

1.8.1 → 2.0.12023-05-27

PHP version history (4 changes)1.8.0PHP ^7.4||^8.0

1.8.1PHP ^7.4 || ^8.0

2.0.1PHP ^7.0 || ^8.0

2.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/76531533d4ec8ef6b40757c24312a15f261e972240a60da68e254d4cd80d2e34?d=identicon)[lostfocus](/maintainers/lostfocus)

---

Top Contributors

[![beeyev](https://avatars.githubusercontent.com/u/326840?v=4)](https://github.com/beeyev "beeyev (16 commits)")[![lostfocus](https://avatars.githubusercontent.com/u/45055?v=4)](https://github.com/lostfocus "lostfocus (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (2 commits)")[![alexander-tebiev](https://avatars.githubusercontent.com/u/120428878?v=4)](https://github.com/alexander-tebiev "alexander-tebiev (1 commits)")[![squiaios](https://avatars.githubusercontent.com/u/13620819?v=4)](https://github.com/squiaios "squiaios (1 commits)")

---

Tags

thumbor

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lostfocus-thumbor-php/health.svg)

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

###  Alternatives

[99designs/phumbor

A minimal Thumbor library for PHP

1252.4M6](/packages/99designs-phumbor)[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[beeyev/thumbor-php

Thumbor library for PHP

2960.6k](/packages/beeyev-thumbor-php)[gravatarphp/gravatar

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

12653.6k2](/packages/gravatarphp-gravatar)[somehow-digital/typo3-media-processing

Media Processing

121.3k](/packages/somehow-digital-typo3-media-processing)

PHPackages © 2026

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