2017 © Pedro Peláez
 

library phpamo

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

image

willwashburn/phpamo

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

  • Saturday, March 18, 2017
  • by willwashburn
  • Repository
  • 5 Watchers
  • 27 Stars
  • 14,235 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

phpamo Build Status Codecov Minimum PHP Version Packagist Packagist MIT License

A PHP library to create urls for Camo - the SSL image proxy :lock:, (*1)

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

For more infomration about Camo, please see the atmos/camo repository., (*3)

Installation

composer require willwashburn/phpamo, (*4)

Alternatively, add "willwashburn/phpamo": "1.0.*" to your composer.json, (*5)

Usage

If you're just looking to get going with the defaults:, (*6)

    $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?, (*7)

    // 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, (*8)

    $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

  • 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

Thanks to Corey Donohoe for creating Camo., (*9)

Thanks to Andrew Kane for creating the ruby client on which this was based., (*10)

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:, (*11)

The Versions

18/03 2017

dev-master

9999999-dev https://github.com/willwashburn/phpamo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

proxy ssl tls camo tls proxy ssl proxy atmos camo

30/01 2017

1.0.1

1.0.1.0 https://github.com/willwashburn/phpamo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

proxy ssl tls camo tls proxy ssl proxy atmos camo

20/02 2016

1.0.0

1.0.0.0 https://github.com/willwashburn/phpamo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

proxy ssl tls camo tls proxy ssl proxy atmos camo

03/02 2016

0.0.2

0.0.2.0

A PHP client for Camo - the SSL image proxy.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

proxy ssl camo ssl proxy atmos camo

11/02 2015

0.0.1

0.0.1.0

A PHP client for Camo - the SSL image proxy.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

proxy ssl camo ssl proxy atmos camo