PHPackages                             willwashburn/phpamo - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. willwashburn/phpamo

ActiveLibrary[HTTP &amp; Networking](/categories/http)

willwashburn/phpamo
===================

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

1.0.4(6y ago)42159.6k—6%91MITPHPPHP &gt;=5.3.0CI failing

Since Feb 11Pushed 6y ago7 watchersCompare

[ Source](https://github.com/willwashburn/phpamo)[ Packagist](https://packagist.org/packages/willwashburn/phpamo)[ Docs](https://github.com/willwashburn/phpamo)[ RSS](/packages/willwashburn-phpamo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (6)Used By (1)

phpamo [![Build Status](https://camo.githubusercontent.com/2b827703592614c9e8a189502db1672ab60bc4a95ec35f68f0eb332cb9d8e565/68747470733a2f2f7472617669732d63692e6f72672f77696c6c776173686275726e2f706870616d6f2e737667)](https://travis-ci.org/willwashburn/phpamo) [![Codecov](https://camo.githubusercontent.com/22383e2a6ea5f5d044844b7c833ccc8c00f985f0b287d36b15850dea7339b6aa/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f77696c6c776173686275726e2f706870616d6f2e7376673f6d61784167653d32353932303030267374796c653d666c61742d737175617265)](https://codecov.io/gh/willwashburn/phpamo) [![Minimum PHP Version](https://camo.githubusercontent.com/b52c83f3d45755ebcb1e6863ebb202ab192aaf773424369ffdeedae107f027ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/) [![Packagist](https://camo.githubusercontent.com/f09869e8176dfeb242533bf1ac74380d3f6f57bd5a088b57c534521a28e3705d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696c6c776173686275726e2f706870616d6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/willwashburn/phpamo/stats) [![Packagist](https://camo.githubusercontent.com/fbfe52037ceba3096b10bfd9d4c464a7c1fe9c4e052ac77d1341aac6c7567d4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696c6c776173686275726e2f706870616d6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/willwashburn/phpamo) [![MIT License](https://camo.githubusercontent.com/bd450111382734b64eddb8b9185f05f80dc491749ce8b7f8131ecea3e99bb657/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77696c6c776173686275726e2f706870616d6f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/willwashburn/phpamo/blob/master/license.txt)
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#phpamo------)

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

> **Note:** It's pronounced Fa-fah-mo. I'll be honest, I've picked better names. Its like the "[Name Game](https://en.wikipedia.org/wiki/The_Name_Game)" for camo. Kind of. Ok whatever it doesn't make sense but the library still works!

For more infomration about Camo, please see the [atmos/camo](https://github.com/atmos/camo) repository.

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

[](#installation)

`composer require willwashburn/phpamo`

Alternatively, add `"willwashburn/phpamo": "1.0.*"` to your composer.json

Usage
-----

[](#usage)

If you're just looking to get going with the defaults:

```
    $phpamo = new \WillWashburn\Phpamo\Phpamo(
       'YOUR_CAMO_KEY',
       'YOUR_CAMO_DOMAIN'
    );

    // returns a url guaranteed to be https
    $phpamo->camo($url);
```

Perhaps you only want to camouflage urls that are http?

```
    // returns a https url only when http url is used
    // otherwise returns the url
    $phpamo->camoHttpOnly($url);
```

If you'd like to use query string urls instead of the default hex urls, just pass in the query string formatter when creating your object

```
    $phpamo = new \WillWashburn\Phpamo\Phpamo(
       'YOUR_CAMO_KEY',
       'YOUR_CAMO_DOMAIN',
       new QueryStringFormatter(new QueryStringEncoder)
    );

    // returns a https url in the query string format
    $phpamo->camo($url);
```

Change Log
----------

[](#change-log)

- v1.0.4 - Fix notice on scheme key when missing
- v1.0.1 - Fix httpOnly method
- v1.0.0 - Add support for query string formatted camo urls
- v0.0.2 - Fix namespacing issues
- v0.0.1 - Initial version

Credit
------

[](#credit)

Thanks to [Corey Donohoe](https://github.com/atmos) for creating Camo.

Thanks to [Andrew Kane](https://github.com/ankane/camo/) for creating the ruby client on which this was based.

Contributing
------------

[](#contributing)

Everyone is encouraged to help improve this project. Here are a few ways you can help:

- [Report bugs](https://github.com/willwashburn/phpamo/issues)
- Fix bugs and [submit pull requests](https://github.com/willwashburn/phpamo/pulls)
- Write, clarify, or fix documentation
- Suggest or add new features

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~474 days

Total

5

Last Release

2218d ago

Major Versions

0.0.2 → 1.0.02016-02-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/957608?v=4)[Will Washburn](/maintainers/willwashburn)[@willwashburn](https://github.com/willwashburn)

---

Top Contributors

[![willwashburn](https://avatars.githubusercontent.com/u/957608?v=4)](https://github.com/willwashburn "willwashburn (44 commits)")[![ImMaax](https://avatars.githubusercontent.com/u/40642083?v=4)](https://github.com/ImMaax "ImMaax (1 commits)")[![nicosomb](https://avatars.githubusercontent.com/u/121870?v=4)](https://github.com/nicosomb "nicosomb (1 commits)")

---

Tags

proxytlssslcamotls proxyssl proxyatmos camo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/willwashburn-phpamo/health.svg)

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

###  Alternatives

[padraic/humbug_get_contents

Secure wrapper for accessing HTTPS resources with file\_get\_contents for PHP 5.3+

1255.3M5](/packages/padraic-humbug-get-contents)[nette/http

🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.

48819.2M541](/packages/nette-http)[jenssegers/proxy

Proxy library that forwards requests to the desired url and returns the response.

940487.2k4](/packages/jenssegers-proxy)[clue/http-proxy-react

Async HTTP proxy connector, tunnel any TCP/IP-based protocol through an HTTP CONNECT proxy server, built on top of ReactPHP

472.3M33](/packages/clue-http-proxy-react)[zounar/php-proxy

Forward your HTTP/HTTPS requests to another server.

1814.0k](/packages/zounar-php-proxy)[flowpack/varnish

Varnish integration for Neos

2052.9k](/packages/flowpack-varnish)

PHPackages © 2026

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