platx/yii2-http-error-helper

Helper for triggering http exceptions

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 2 355

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-10-20 14:24 UTC

This package is not auto-updated.

Last update: 2020-10-09 02:48:31 UTC


README

Helper for triggering http exceptions

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist platx/yii2-http-error-helper "*"

or add

"platx/yii2-http-error-helper": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \platx\httperror\HttpError::the404('Not found!') ?>