paq85 / phpstarter

Takes care preparing PHP's settings to let you work on a well written project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhpStarter

Build Status Packagist Version

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

Useful links

About

Takes care preparing PHP's settings to let you work on a well written project

License:MIT License


Languages

Language:PHP 100.0%