2017 © Pedro Peláez
 

library phphttp

Library of simple HTTP utilities.

image

joefallon/phphttp

Library of simple HTTP utilities.

  • Thursday, February 5, 2015
  • by jfallon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

phphttp

By Joe Fallon, (*1)

A simple library of useful HTTP utilities. It has the following features:, (*2)

  • Full suite of unit tests.
  • It can be integrated into any existing project.
  • Can be fully understood in just a few moments.

Installation

The easiest way to install PhpDatabase is with Composer. Create the following composer.json file and run the php composer.phar install command to install it., (*3)

{
    "require": {
        "joefallon/phphttp": "*"
    }
}

Usage

There are four main classes contained in this library:, (*4)

  • Agent
  • HttpCodes
  • MimeType
  • PageRedirect

Agent

isBrowser()
isMobile()
isRobot()
isReferral()
getBrowserName()
getBrowserVersion()
getMobileDeviceName()
getRobotName()
getPlatformName()
getReferrer()
getAgentString()
getLanguages()
getCharsets()
acceptsLang($lang = 'en')
acceptsCharset($charset = 'utf-8')

HttpCodes

getCodeMessage($code)

MimeType

getMimeTypeFromFileName($filename = '')
getMimeTypeFromFileExtension($extension = '')

PageRedirect

getRedirectDestination()
setRedirectDestination($destination)
redirect()

The Versions

05/02 2015

dev-master

9999999-dev https://github.com/joefallon/phphttp

Library of simple HTTP utilities.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

05/02 2015

dev-develop

dev-develop https://github.com/joefallon/phphttp

Library of simple HTTP utilities.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

05/02 2015

v2.0.2

2.0.2.0 https://github.com/joefallon/phphttp

Library of simple HTTP utilities.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

05/02 2015

v2.0.1

2.0.1.0 https://github.com/joefallon/phphttp

phphttp

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

09/12 2014

v2.0.0

2.0.0.0 https://github.com/joefallon/phphttp

phphttp

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

29/10 2014

v1.0.0

1.0.0.0 https://github.com/joefallon/phphttp

phphttp

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php