PHPackages                             gabrielgil/timthumb - 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. gabrielgil/timthumb

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

gabrielgil/timthumb
===================

TimThumb is a simple, flexible, PHP script that resizes images.

2.8.14(11y ago)616.1k83GPL-2.0PHP

Since Jan 19Pushed 11y ago7 watchersCompare

[ Source](https://github.com/GabrielGil/TimThumb)[ Packagist](https://packagist.org/packages/gabrielgil/timthumb)[ RSS](/packages/gabrielgil-timthumb/feed)WikiDiscussions master Synced 1mo ago

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

TimThumb
========

[](#timthumb)

TimThumb is a simple, flexible, PHP script that resizes images.

My intention is to have an updated repo which works with composer on all my known LAMP server configurations because the only timthumb repo on packagist is out of date (2.8.11) which doesn't works for me.

Installing with composer
------------------------

[](#installing-with-composer)

To use this repo on you composer proyect, simply add an *vcs* repository pointing to this GitHub repo and require it on your composer.json file:

```
{
	"repositories": [
		{
			"type": "vcs",
			"url": "https://github.com/GabrielGil/TimThumb"
		}
	],
	"require": {
		"gabrielgil/timthumb": "2.*"
	}
}
```

### A better way to use TimThumb

[](#a-better-way-to-use-timthumb)

I think it's a good way of using timthumb, to store it on a non-public folder (Like the whole composer *vendor* folder) and then create your **own** resizer endpoint. If you use it with composer (as this repo is intended to), hide your vendor folder (Just an advice).

How you create your own app structure depends on you, or on your team. If your desired resize endpoint points to a specific file, you can use this code there.

```

/* Redefine your with own defaults here.
 * This are just examples, no one is required. */

// Set the time the cache is cleaned (Since the image generation) to one month (2592000/60/60/24=30)
define ('FILE_CACHE_MAX_FILE_AGE', 2592000);
// Use the default system cache dir so your project's folder stays clean.
define ('FILE_CACHE_DIRECTORY', sys_get_temp_dir());
// Quality set to 100%
define ('DEFAULT_Q', 100);

// Start timthumb.
timthumb::start();
```

After this is set up, you can use all the parameters shown in the [official documentation](http://binarymoon.co.uk/projects/timthumb).

Documentation
-------------

[](#documentation)

You can also check the original documentation at [binarymoon.uk](http://binarymoon.co.uk/projects/timthumb)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~178 days

Total

2

Last Release

4315d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39abe4d742369335279b5fcfd0ade950db776650fe36a3700426d65b6fb46120?d=identicon)[GabrielGil](/maintainers/GabrielGil)

---

Top Contributors

[![GabrielGil](https://avatars.githubusercontent.com/u/961534?v=4)](https://github.com/GabrielGil "GabrielGil (11 commits)")

### Embed Badge

![Health badge](/badges/gabrielgil-timthumb/health.svg)

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

###  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.0k22](/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)
