2017 © Pedro PelĂĄez
 

library http-reason-phrase-lookup

A class to lookup HTTP reason phrases

image

codeinc/http-reason-phrase-lookup

A class to lookup HTTP reason phrases

  • Tuesday, June 12, 2018
  • by joanfabregat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

HTTP reason phrase lookup

This library is a PHP 7.1 library dedicated to lookup HTTP reason phrases. It is using the reason phrases list from the Guzzle PSR-7 package., (*1)

Usage

<?php
use CodeInc\Psr7ResponseSender\HttpReasonPhraseLookup;

// you can lookup a given status code 
HttpReasonPhraseLookup::getReasonPhrase(404); // returns 'Not Found'
HttpReasonPhraseLookup::getReasonPhrase(999); // returns null

// or list all the reason phrases
foreach (HttpReasonPhraseLookup::getReasonPhrases() as $statusCode => $reasonPhrase) {
    echo "$statusCode => $reasonPhrase\n";
}

Installation

This library is available through Packagist and can be installed using Composer:, (*2)

composer require codeinc/http-reason-phrase-lookup

License

This library is published under the MIT license (see the LICENSE file)., (*3)

The Versions

12/06 2018

dev-master

9999999-dev https://github.com/CodeIncHQ/HttpReasonPhraseLookup

A class to lookup HTTP reason phrases

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

12/06 2018

1.0.0

1.0.0.0 https://github.com/CodeIncHQ/HttpReasonPhraseLookup

A class to lookup HTTP reason phrases

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

12/06 2018

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/CodeIncHQ/HttpReasonPhraseLookup

A class to lookup HTTP reason phrases

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

12/06 2018

1.0.0-beta.1

1.0.0.0-beta1 https://github.com/CodeIncHQ/HttpReasonPhraseLookup

A class to lookup HTTP reason phrases

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires