2017 © Pedro Peláez
 

library headers

A PHP library for working with HTTP and mail message headers

image

ivoba/headers

A PHP library for working with HTTP and mail message headers

  • Wednesday, January 10, 2018
  • by ivoba
  • Repository
  • 2 Watchers
  • 4 Stars
  • 13,172 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

headers

A PHP library for working with HTTP and mail headers, (*1)

Build Status, (*2)

Install

composer require ivoba/headers

Version 2 requires minimum PHP7.1., (*3)

Usage

$headers = Headers::fromString(
'HTTP/1.1 200 OK
 Content-Length: 782420
 Content-Type: text/xml; charset=utf-8
 Server: Microsoft-HTTPAPI/2.0
 Date: Tue, 28 Nov 2017 16:08:41 GMT'
);

$reason = $headers->getStatusLine()->get(StatusLine::REASON_PHRASE); //OK
$server = $headers->getHeaders()->get('server'); //Microsoft-HTTPAPI/2.0

Tests

Install the dependencies via composer and run, (*4)

vendor/bin/phpunit

Credits

This is a shameless port of https://github.com/ddeboer/headers which seems to be unmaintained., (*5)

The Versions

10/01 2018

dev-master

9999999-dev

A PHP library for working with HTTP and mail message headers

  Sources   Download

The Requires

  • php >=7.1

 

The Development Requires

04/12 2017

v2.0.0

2.0.0.0

A PHP library for working with HTTP and mail message headers

  Sources   Download

The Requires

  • php >=7.1

 

The Development Requires

01/12 2017

1.1.0

1.1.0.0

A PHP library for working with HTTP and mail message headers

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

04/04 2016

1.0.0

1.0.0.0

A PHP library for working with HTTP and mail message headers

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires