Honeybadger example for PHP/Laravel
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap Fresh laravel app Aug 14, 2018
config
database Fresh laravel app Aug 14, 2018
laradock @ 1b865dd Fresh laravel app Aug 14, 2018
public
resources Add /fail route Aug 14, 2018
routes Use a controller class Aug 15, 2018
storage Fresh laravel app Aug 14, 2018
tests
.editorconfig Fresh laravel app Aug 14, 2018
.env.example Fresh laravel app Aug 14, 2018
.gitattributes Fresh laravel app Aug 14, 2018
.gitignore Fresh laravel app Aug 14, 2018
.gitmodules Fresh laravel app Aug 14, 2018
Procfile
README.md
app.json Update app.json Aug 14, 2018
artisan
composer.json Add honeybadger-laravel Aug 14, 2018
composer.lock Add honeybadger-laravel Aug 14, 2018
package.json
phpunit.xml Fresh laravel app Aug 14, 2018
server.php
webpack.mix.js Fresh laravel app Aug 14, 2018

README.md

Honeybadger Test PHP/Laravel App

Welcome to a simple PHP/Laravel application that allows you to test the Honeybadger monitoring platform for PHP apps. Honeybadger allows you to easily monitor for exceptions in your PHP web applications.

Quick Start

The easiest way to get started with this application is to deploy it to Heroku with the Heroku Button:

Deploy

Slightly Less Quick Start

If you'd like to do it the old fashioned way, follow these steps:

  1. Sign up or sign in at Honeybadger.io
  2. Create a new project and make a note of the api key on the settings page
  3. Clone or download this app
  4. Run composer install to get the necessary dependencies installed
  5. Create and edit the .env file: cp .env.example .env
  6. Run the app: HONEYBADGER_API_KEY=your_api_key_here php artisan serve

Via Docker

If you already use docker and docker-compose, the easiest way to get this app up and running is via the laradock environment:

git clone https://github.com/honeybadger-io/crywolf-laravel.git
cd crywolf-laravel
git submodule update --init --recursive
cp .env.example .env
cd laradock
cp env-example .env
docker-compose up -d nginx mysql phpmyadmin redis workspace 

Open your browser and visit localhost: http://localhost

Trying It Out

Once you have the app running, either on Heroku or on your local machine, browse to the running PHP app. When you click on the first link, an error will be triggered and reported to Honeybadger. Check your email for a message from Honeybadger with a link to the error you just recorded.

Enjoy!

We hope this sample app gives you an easy way to see just how awesome Honeybadger is. :) If you have any questions about this app or the Honeybadger monitoring service, please feel free to drop us a line at support@honeybadger.io.