PHPackages                             simexis/thumbalizr - 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. simexis/thumbalizr

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

simexis/thumbalizr
==================

1.1(11y ago)030PHPPHP &gt;=5.4.0

Since May 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jooorooo/Thumbalizr)[ Packagist](https://packagist.org/packages/simexis/thumbalizr)[ RSS](/packages/simexis-thumbalizr/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Thumbalizr
==========

[](#thumbalizr)

Thumbalizr Class for Laravel 5

Uses API from thumbalizr.com

Requirements
------------

[](#requirements)

- Laravel 5.X
- php 5.4+

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

[](#installation)

##### Step 1: Install package using [Composer](https://getcomposer.org)

[](#step-1-install-package-using-composer)

Add simexis/thumbalizr to "require" section of your composer.json

```
"require": {
    "simexis/thumbalizr": ">=1.0"
},
```

Add repository to "repositories" section of your composer.json

```
"repositories": [ {
	"type": "vcs",
	"url": "https://github.com/jooorooo/Thumbalizr.git"
}],
```

Then install dependencies using following command:

```
php composer.phar install
```

##### Step 2: Laravel Setup

[](#step-2-laravel-setup)

Add following line to 'providers' section of app/config/app.php file:

```
'Simexis\Thumbalizr\ThumbalizrServiceProvider',
```

Usage
-----

[](#usage)

Default configuration is:

```
$cfg = [
	'api_key'			=>	"", //put your api key here
	'service_url'		=>	"http://api.thumbalizr.com/", // don't change, if you didn't have a special service contract
	'use_local_cache'	=>	TRUE, // TRUE or FALSE for local image cache
	'local_cache_dir'	=>	public_path()."/thumbs", //relative cache directory must exists in install directory and rwx permissions to all (777)
	'local_cache_expire'=>	24*14, // local chache expiration time in hours

	'defaults' 			=> [
        'width'				=>		"400", // image width
		'delay'				=>		"10", // caputre delay useful for flash content 5 - 10 is a good value
		'encoding'			=>		"png", // jpg or png
		'quality'			=>		"90", //image quality 10-90
		'bwidth'			=>		"1280", // browser width
		'mode'				=>		"screen", // screen or page
		'bheight'			=>		"1024" // browser height only for mode=screen
   	]
];
```

#### Basic example

[](#basic-example)

```
$cfg = [
	'api_key'			=>	"..............",

	'defaults' 			=> [
        'width'				=>		"250", // image width
   	]
];
echo \Thumbalizr::getThumbSrc('http://google.com',$cfg);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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 ~6 days

Total

2

Last Release

4056d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b94e45e0fc8056daeec3bc285ca4befdbaf5064a57f29bd9d93a9459afab9a28?d=identicon)[jooorooo](/maintainers/jooorooo)

### Embed Badge

![Health badge](/badges/simexis-thumbalizr/health.svg)

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

###  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)
