2017 © Pedro Pelรกez
 

library whoops-report

image

sukohi/whoops-report

  • Wednesday, December 23, 2015
  • by Sukohi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

WhoopsReport

A Laravel package to send a report when occurring bug.(for Laravel 4.2), (*1)

Whoops Report, (*2)

Installation

Add this package name in composer.json, (*3)

"require": {
  "sukohi/whoops-report": "1.*"
}

Execute composer command., (*4)

composer update

Register the service provider in app.php, (*5)

'providers' => array(  
    ...Others...,  
    'Sukohi\WhoopsReport\WhoopsReportServiceProvider',
)

Also alias, (*6)

'aliases' => array(  
    ...Others...,  
    'WhoopsReport' => 'Sukohi\WhoopsReport\Facades\WhoopsReport',
)

Preparation

Set routes in your routes.php, (*7)

(in routes.php), (*8)

Route::post('whoops-report', array('as' => 'whoops-report', function()
{
    return WhoopsReport::send('YOUR-MAIL@example.com');
}));

App::error(function(Exception $exception, $code)
{
    return WhoopsReport::view($exception);
});

That's all., (*9)

About cc and bcc

You also can set cc and/or bcc email addresses like this., (*10)

return WhoopsReport::send('YOUR-MAIL@example.com', [
    'cc' => ['cc1@example.com'],
    'bcc' => ['bcc1@example.com'],
]);

Locale

If you'd like to use language except English, you need to set a lang file like this., (*11)

(in case of Japanese), (*12)

app/lang/packages/ja/whoops-report/message.php, (*13)

<?php

return [
    'title' => 'ใ‚จใƒฉใƒผใŒ็™บ็”Ÿใ—ใพใ—ใŸใ€‚',
    'description' => 'ใ”ไธไพฟใ‚’ใŠๆŽ›ใ‘ใ—ใพใ—ใฆ็”ณใ—่จณใ”ใ–ใ„ใพใ›ใ‚“ใ€‚ไปฅไธ‹ใซไธๅ…ทๅˆใฎ็Šถๆณใ‚’ใงใใ‚‹ใ ใ‘่ฉณ็ดฐใซใ”่จ˜ๅ…ฅใ—้€ไฟกใ—ใฆใใ ใ•ใ„ใ€‚',
    'button' => 'ๅ ฑๅ‘Šใ™ใ‚‹',
    'confirm' => 'ใƒใ‚ฐๅ ฑๅ‘Šใ‚’้€ไฟกใ—ใพใ™ใ€‚ใ‚ˆใ‚ใ—ใ„ใงใ™ใ‹?',
    'complete' => 'ใƒใ‚ฐๅ ฑๅ‘ŠใŒ้€ไฟกใ•ใ‚Œใพใ—ใŸใ€‚ใ”ๅ”ๅŠ›ใ‚ใ‚ŠใŒใจใ†ใ”ใ–ใ„ใพใ—ใŸใ€‚',
];

Note

I guess that you might need to check authorized in routes.php., (*14)

License

This package is licensed under the MIT License., (*15)

Copyright 2015 Sukohi Kuhoh, (*16)

The Versions

23/12 2015

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

The Requires

 

by Avatar Sukohi

23/12 2015

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar Sukohi

23/12 2015

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by Avatar Sukohi

23/12 2015

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Avatar Sukohi