PHPackages                             aalfiann/img-spoof - 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. aalfiann/img-spoof

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

aalfiann/img-spoof
==================

This is a very simple and fast to get an image with spoofing referer.

1.1.5(5y ago)3161MITPHPPHP &gt;=5.4

Since May 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aalfiann/img-spoof)[ Packagist](https://packagist.org/packages/aalfiann/img-spoof)[ RSS](/packages/aalfiann-img-spoof/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (19)Used By (0)

img-spoof
=========

[](#img-spoof)

[![Version](https://camo.githubusercontent.com/c1fe1dd33b03ea00f59c7551f35092777745cbd0c6d9cdb9c1fe5d709eea0bd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61616c6669616e6e2f696d672d73706f6f662e737667)](https://packagist.org/packages/aalfiann/img-spoof)[![Downloads](https://camo.githubusercontent.com/1c965086a24065b9d8a7cdec7ca59183a2a73465cf100273bd3fec42f507bba2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61616c6669616e6e2f696d672d73706f6f662e737667)](https://packagist.org/packages/aalfiann/img-spoof)[![License](https://camo.githubusercontent.com/8d88aba1f9b20711d66d82b2b92ad4209e06dc711d567ea19c85ae2fef29e8a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61616c6669616e6e2f696d672d73706f6f662e737667)](https://github.com/aalfiann/img-spoof/blob/HEAD/LICENSE)

This is a very simple and fast to get an image with spoofing referer.

Features
--------

[](#features)

- **Spoofing Image Referer**
    You are able to get a protected remote image by spoofing it.
- **Shared Proxy Cache**
    A remote image is not downloaded but will be saved on client browser or proxy cache.
- **Firewall Request**
    You are able to set this service to work on spesific domain only (protected from direct access).

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

[](#installation)

1. Install this package via [Composer](https://getcomposer.org/).

    ```
    composer create-project aalfiann/img-spoof [my-app-name]

    ```
2. Upload to your server
3. Done

**Note:**

- See `config.php` to set firewall and adjust max-age for cache.

Query Parameter
---------------

[](#query-parameter)

- **url** : URL Image target.
- **referer** : Set the referer image. \[`optional`\]
- **mime** : Set the mime type of image (ex: png). \[`optional`\]
- **v** : Set the version to refresh cache. \[`optional`\]

**Note:**

- Mime type will detect automatically if the url included extension.
- jQuery Ajax `cache: false` will detected automatically.

Example
-------

[](#example)

This will GET image with spoofing referer.
See `example.html`.

```

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Recently: every ~35 days

Total

18

Last Release

2044d ago

### Community

Maintainers

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

---

Top Contributors

[![aalfiann](https://avatars.githubusercontent.com/u/9458941?v=4)](https://github.com/aalfiann "aalfiann (18 commits)")

---

Tags

imageimage-refererimage-spoofreferer-spoofimagespoofimage-spoofreferer-spoofreferer-image

### Embed Badge

![Health badge](/badges/aalfiann-img-spoof/health.svg)

```
[![Health](https://phpackages.com/badges/aalfiann-img-spoof/health.svg)](https://phpackages.com/packages/aalfiann-img-spoof)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k54.4M138](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

5520.3M9](/packages/intervention-gif)

PHPackages © 2026

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