2017 © Pedro Peláez
 

library harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

image

schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  • Friday, April 8, 2016
  • by schnittstabil
  • Repository
  • 1 Watchers
  • 1 Stars
  • 59 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Harmonizer Build Status Coverage Status Scrutinizer Code Quality Code Climate

SensioLabsInsight, (*1)

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION., (*2)

Install

$ composer require schnittstabil/harmonizer

Usage

require __DIR__.'/vendor/autoload.php';

\Schnittstabil\Harmonizer\harmonize($_SERVER);

echo 'Hello '.$_SERVER['REMOTE_USER'];

API

Schnittstabil\Harmonizer\harmonize(&$server)

Infering missing variables in $server:, (*3)

\Schnittstabil\Harmonizer\harmonize($_SERVER);

// $_SERVER['.*'] from $_SERVER['REDIRECT_.*'], eg.
$_SERVER['HTTP_AUTHORIZATION']  // from $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
$_SERVER['GEOIP_LATITUDE']      // from $_SERVER['REDIRECT_REDIRECT_GEOIP_LATITUDE'];

// unify user variables, if needed
$_SERVER['REMOTE_USER']   // from $_SERVER['PHP_AUTH_USER']
$_SERVER['PHP_AUTH_USER'] // from $_SERVER['REMOTE_USER']

// from $_SERVER['HTTP_AUTHORIZATION']:
$_SERVER['AUTH_TYPE']       // 'Basic' or 'Digest'
$_SERVER['REMOTE_USER']     // if needed
$_SERVER['PHP_AUTH_USER']   // if needed
$_SERVER['PHP_AUTH_PW']     // if $_SERVER['AUTH_TYPE'] === 'Basic'
$_SERVER['PHP_AUTH_DIGEST'] // if $_SERVER['AUTH_TYPE'] === 'Digest'

License

MIT © Michael Mayer, (*4)

The Versions

08/04 2016

dev-master

9999999-dev https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

08/04 2016

4.0.1

4.0.1.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

04/04 2016

4.0.0

4.0.0.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

03/03 2016

3.0.3

3.0.3.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

03/03 2016

3.0.2

3.0.2.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

30/01 2016

3.0.1

3.0.1.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

28/01 2016

3.0.0

3.0.0.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

17/11 2015

2.0.0

2.0.0.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server

16/11 2015

1.0.0

1.0.0.0 https://github.com/schnittstabil/harmonizer

Harmonize PHP module, CGI and FCGI/FastCGI environments by infering missing $_SERVER variables like REMOTE_USER and HTTP_AUTHORIZATION.

  Sources   Download

MIT

The Development Requires

authentication authorization auth http environment env cgi fastcgi basic digest fcgi _server