Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from narrowspark/develop
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
prisis authored Jun 22, 2016
2 parents 7375c22 + 8d2287a commit d3610c6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,28 @@

All Notable changes to `http-status` will be documented in this file

## NEXT - YYYY-MM-DD
## NEXT - 2016-06-22

### Added
- HttpStatus::getReasonName | returns the status name.

### Deprecated
- Nothing

### Fixed
- HttpStatus::getReasonPhrase | return now the status text for a error.

### Removed
- Nothing

### Security
- Nothing

## NEXT - 2016-06-01

### Added
- HttpStatus::getReasonPhrase | return the status text.

### Deprecated
- Nothing

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ $ composer require narrowspark/http-status
use Narrowspark\HttpStatus\HttpStatus;

// get status text from code
echo HttpStatus::getReasonPhrase(301); // Moved Permanently
echo HttpStatus::getReasonPhrase(301); // This and all future requests should be directed to the given URI.

// get status name from code
echo HttpStatus::getReasonName(301); // Moved Permanently

try {
HttpStatus::getReasonException(301):
Expand Down

0 comments on commit d3610c6

Please sign in to comment.