paq85/phpstarter
最新稳定版本:v1.0.0
Composer 安装命令:
composer require paq85/phpstarter
包简介
Set of tools for a good start of PHP project
README 文档
README
Takes care preparing PHP's settings to let you work on a well written project
\Paq\PhpStarter\PhpStarter::start();
What does it do?
- Report all Errors
- Convert PHP Errors, Notices etc. to Exceptions
Why?
- Having error reporting enabled with conversion to exceptions gives you full control over your code. It makes writing automatic tests easier which let's you provide much better software. Many people disable error reporting in Production. IMHO it should be ENABLED on all environments.
Convert PHP Errors, Notices etc. to Exceptions
If you only want to convert PHP Errors to Exceptions use
\Paq\PhpStarter\PhpStarter::convertErrorsToExceptions();
Tips
You SHOULD NOT use "@" (Inline Error Suppression) in your code.
See PHP The Right Way: Errors and Exceptions
Credits
Thanks to
- Xstream Ingest development team.
Useful links
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-23