PatrickRose / whoops-configurator by PatrickRose

Provides a sensible way to configure Whoops in Laravel
1,997
2
3
Package Data
Maintainer Username: PatrickRose
Maintainer Contact: pjr0911025@googlemail.com (Patrick Rose)
Package Create Date: 2014-05-08
Package Last Update: 2014-07-10
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:18:46
Package Statistics
Total Downloads: 1,997
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Whoops Configurator

Whoops is pretty damn awesome. Laravel is pretty damn awesome and includes Whoops. Changing the configuration for Whoops is not.

Installing

Add the following to your composer.json (Put it in the require-dev block since you aren't showing debug messages in production...right?):

"require-dev": {
    ...,
    "patrickrose/whoops-configurator": "1.*"
}

Then run composer update and watch as pretty much nothing happens

Then load the service provider in your app.php file (I'd recommend against loading it in production - you can cascade so everything doesn't break by using the append_config() function)

    "PatrickRose\WhoopsConfigurator\WhoopsConfiguratorServiceProvider"

Finally, publish the config file:

php artisan config:publish patrickrose/whoops-configurator

Then you're all done!

Config Options

Currently, there are two options: editor and title. They're mostly self explanatory.

Editors

Whoops comes with support for four editors (I may add support for other editors later). To use one, just set the editor value to one of the following:

  • sublime - Sublime Text 2
  • emacs - Emacs
  • textmate - Textmate
  • macvim - MacVim

If you wish to provide your own support, you may instead pass a closure. See Whoops' Docs for more info on that.

Title

Self explanatory. If you want to insult yourself, make a geeky joke or whatever then change the title value to whatever you like.

License

This is licensed under the MIT license