PHPackages                             jdreesen/camo-url-generator - 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. jdreesen/camo-url-generator

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

jdreesen/camo-url-generator
===========================

A library that generates URLs for usage with camo TLS image proxy.

v1.0.0(10y ago)025MITPHPPHP &gt;=5.3.3

Since Jul 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jdreesen/camo-url-generator)[ Packagist](https://packagist.org/packages/jdreesen/camo-url-generator)[ Docs](http://github.com/jdreesen/camo-url-generator)[ RSS](/packages/jdreesen-camo-url-generator/feed)WikiDiscussions 1.0 Synced 1mo ago

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

Camo URL Generator
==================

[](#camo-url-generator)

[![Build Status](https://camo.githubusercontent.com/575096fbafde1b3c3be092e718ae53e26fd148be3e47a4fb0b4e0d0502fd4a53/68747470733a2f2f7472617669732d63692e6f72672f6a6472656573656e2f63616d6f2d75726c2d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jdreesen/camo-url-generator)[![License](https://camo.githubusercontent.com/2a7adef15e865f8f0a6a4ca12bf56bac328739b6f990ba6fcadab6c04ca7365f/68747470733a2f2f706f7365722e707567782e6f72672f6a6472656573656e2f63616d6f2d75726c2d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/jdreesen/camo-url-generator)

A PHP library that generates camouflaged URLs for usage with [camo](https://github.com/atmos/camo) or [go-camo](https://github.com/cactus/go-camo) TLS image proxy.

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

[](#installation)

Just run

```
$ composer require jdreesen/camo-url-generator

```

Example
-------

[](#example)

```
use Dreesen\Image\HexCamo;
use Dreesen\Image\HttpOnlyCamo;

$camo = new HttpOnlyCamo(new HexCamo('https://img.example.org', 'secret'));

echo $camo->camouflage('http://example.org/image.jpg');
```

The `secret` is the same HMAC key you used on your camo server instance running on `https://img.example.org`.

What's inside?
--------------

[](#whats-inside)

- `Dreesen\Image\Camo`: Interface for your type-hinting which is implemented by all the following classes.
- `Dreesen\Image\HexCamo`: Generates URLs for usage with the [camo](https://github.com/atmos/camo) or [go-camo](https://github.com/cactus/go-camo) image proxy in HEX format.
- `Dreesen\Image\Base64Camo`: Generates URLs for usage with the [go-camo](https://github.com/cactus/go-camo) image proxy in Base64 format.
- `Dreesen\Image\QueryStringCamo`: Generates URLs for usage with the [camo](https://github.com/atmos/camo) image proxy in query string format.
- `Dreesen\Image\HttpOnlyCamo`: Decorator to only camouflage HTTP (non-secure) URLs.
- `Dreesen\Image\NoCamo`: Disables image camouflage by returning given URLs as they are.

Credit
------

[](#credit)

Thanks to [Corey Donohoe](https://github.com/atmos) for creating Camo and to [cactus](https://github.com/cactus) for the GoLang port of Camo.

License
-------

[](#license)

All contents of this package are licensed under the [MIT license](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Total

2

Last Release

3955d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ce782bdaf4f2fa8e39ed841ff5fbe60c3b7259cace2654771afab65b34be568?d=identicon)[jdreesen](/maintainers/jdreesen)

---

Top Contributors

[![jdreesen](https://avatars.githubusercontent.com/u/424602?v=4)](https://github.com/jdreesen "jdreesen (9 commits)")

---

Tags

camogo-camotls proxy

### Embed Badge

![Health badge](/badges/jdreesen-camo-url-generator/health.svg)

```
[![Health](https://phpackages.com/badges/jdreesen-camo-url-generator/health.svg)](https://phpackages.com/packages/jdreesen-camo-url-generator)
```

###  Alternatives

[willwashburn/phpamo

A PHP library to create urls for Camo - the SSL image proxy

42159.6k1](/packages/willwashburn-phpamo)

PHPackages © 2026

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