Download the PHP package onwwward/laravel-bugherd without Composer
On this page you can find all versions of the php package onwwward/laravel-bugherd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onwwward/laravel-bugherd
More information about onwwward/laravel-bugherd
Files in onwwward/laravel-bugherd
Package laravel-bugherd
Short Description Laravel 5 wrapper for Bugherd API
License MIT
Informations about the package laravel-bugherd
Laravel Bugherd
This is a Laravel 5 wrapper for the PHP Bugherd Api package.
What is Bugherd?
BugHerd is a simple point and click bug tracker, that was founded in 2011 by Alan Downie and Matt Milosavljevic.
https://www.bugherd.com/api_v2
Basic Installation
Laravel
Add the service provider to the providers array in :
You can optionally use the facade for shorter code. Add the facade to the alias array in :
Lumen
Find the section in where you should register the service providers and add the following:
You can optionally use the facade for shorter code. However you will have to uncomment the following line in file:
You will also have to add the following to the same file:
Configuration
Laravel
You'll need to provide your apikey
which you can find under your profile settings in Bugherd. In Laravel you should be able to publish the configuration file with an artisan
command, but you can create the file manually as well.
Where's the file? Laravel 5 will publish the config file to
/config/bugherd.php
.
Lumen
There is no command for publishing package files in Lumen so you'll have to create the config file manually. Create a config
directory in the application's root in case you don't have it. Then, either copy the bugherd.php
file from /vendor/onwwward/laravel-bugherd/src/config/
or create the php file returning a simple array with the correct 'apikey' .
Code Example
There are several ways to resolve something out of the container.
with Facade
Include the facade at the top:
Then you can use it anywhere:
Type Hinting
Make method (Laravel)
app Helper (Lumen)
Accessing the Bugherd Resources
Todo
- Add logging maybe?
License
This plugin is released under the permissive MIT license. Your contributions are always welcome.