PHPackages                             fbf/instafilter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fbf/instafilter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fbf/instafilter
===============

Replicate Instragram-style filters in PHP. Translates photoshop functions to PHP.

1021811PHP

Since Nov 1Pushed 13y ago17 watchersCompare

[ Source](https://github.com/FbF/Instafilter)[ Packagist](https://packagist.org/packages/fbf/instafilter)[ RSS](/packages/fbf-instafilter/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Instafilter
===========

[](#instafilter)

Replicate Instragram-style filters in PHP. Translates photoshop functions to PHP.

Installation
============

[](#installation)

The tmp directory must be writable.

Usage
=====

[](#usage)

Fork and pull request any useful changes you make.

```
\Instafilter\Image::load('kittens.png')
	->resize(200, 200)
	->apply_filter(new Instafilter\Filter\Earlybird())
	->save('new.jpg');
```

n.b. applying the filter is quite slow; You'll get a significant performance gain by resizing *before* applying the filter.

If you don't use an autoloader, you'll need to load in the classes:

```
require_once('classes/Image.php');
require_once('classes/Filter.php');
require_once('classes/Filter/Earlybird.php');
require_once('classes/Filter/Inkwell.php');
```

Todo
====

[](#todo)

- Add more filters
- (Somehow) Improve performance
- Improve interface
- Implement more photoshop functions in imagemagick
    - Implement 'curves' properly by using polynomial regression to get the coefficients needed for imagick's FX function
- Abstract and decouple from Image class
- Make composer/packagist compatible

Author
======

[](#author)

Rob McCann

Thanks
======

[](#thanks)

- FuelPHP for use of (parts of) their image class.
- Daniel Box for his Photoshop actions for instagram filters ()

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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://avatars.githubusercontent.com/u/50347874?v=4)[unforeseen](/maintainers/unforeseen)[@unforeseen](https://github.com/unforeseen)

---

Top Contributors

[![rob-mccann](https://avatars.githubusercontent.com/u/412744?v=4)](https://github.com/rob-mccann "rob-mccann (13 commits)")[![abdevuk](https://avatars.githubusercontent.com/u/790620?v=4)](https://github.com/abdevuk "abdevuk (1 commits)")[![dragonmantank](https://avatars.githubusercontent.com/u/108948?v=4)](https://github.com/dragonmantank "dragonmantank (1 commits)")[![neilcrookes](https://avatars.githubusercontent.com/u/24232?v=4)](https://github.com/neilcrookes "neilcrookes (1 commits)")

### Embed Badge

![Health badge](/badges/fbf-instafilter/health.svg)

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

###  Alternatives

[hubertusanton/silverstripe-seo

SEO module for Silverstripe

4523.1k2](/packages/hubertusanton-silverstripe-seo)[jakewhiteley/php-sets

An implementation of a Java-like Set data structure for PHP. A Set is an iterable data structure which allows strict-type storage of unique values.

1828.2k](/packages/jakewhiteley-php-sets)

PHPackages © 2026

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