Download the PHP package yiisoft/friendly-exception without Composer
On this page you can find all versions of the php package yiisoft/friendly-exception. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/friendly-exception
More information about yiisoft/friendly-exception
Files in yiisoft/friendly-exception
Package friendly-exception
Short Description An interface for friendlier exception
License BSD-3-Clause
Homepage http://www.yiiframework.com/
Informations about the package friendly-exception
Yii Friendly Exception
An exception interface that provides a friendly name and a possible solution. Error handlers may consider the interface to render additional information right at the error screen.
Example of implementation in Yii Error Handler:
Requirements
- PHP 7.4 or higher.
Installation
The package could be installed with Composer:
General usage
Implementing friendly exception
To make exception friendly require this package and implement FriendlyExceptionInterface
:
When returning solution consider the following best practices:
- Make solution description as short as possible.
- Do not use HTML tags.
- Use simple markdown.
Handling friendly exception
To make your exception handler render friendly exceptions:
Do not forget to render markdown.
Documentation
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii Friendly Exception is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.