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.2k83GPL-2.0PHP

Since Jan 19Pushed 11y ago1 watchersCompare

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

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 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

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

4369d 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

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495240.6k1](/packages/char0n-ffmpeg-php)[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)
