2017 © Pedro Peláez
 

library httpstatus

HttpStatus is a small package that adds pretty error pages.

image

nwidart/httpstatus

HttpStatus is a small package that adds pretty error pages.

  • Saturday, September 20, 2014
  • by nWidart
  • Repository
  • 2 Watchers
  • 14 Stars
  • 336 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

HttpStatus

HttpStatus is a small package that adds pretty error pages., (*2)

It listens at App::error() and App::down() to provide error pages. Note that these error pages will only show when debug is set to true., (*3)

Installation

Add nwidart/httpstatus as a requirement to composer.json:, (*4)

{
    ...
    "require": {
        ...
        "nwidart/httpstatus": "dev-master"
    },
}

Update composer:, (*5)

$ php composer.phar update

Add 'Nwidart\Httpstatus\HttpstatusServiceProvider' to your app/config/app.php file in the providers array., (*6)

(Optional) Publish package config:, (*7)

$ php artisan config:publish nwidart/httpstatus

Configuration

After the configuration file has been published you can return your own error views. You can provide a view for each error:, (*8)

return array(
    'views' => array(
        '403' => 'errors.your403',
        '404' => 'errors.your404',
        '500' => 'errors.your500',
        '503' => 'errors.your503',
    )
);

Credits

It's inspired by Traffic-Signs, (*9)

The Versions

20/09 2014

dev-master

9999999-dev

HttpStatus is a small package that adds pretty error pages.

  Sources   Download

MIT

The Requires

 

laravel 404 httpstatus error pages