2017 © Pedro Peláez
 

library opbeat-php

Opbeat wrapper for PHP

image

madsleejensen/opbeat-php

Opbeat wrapper for PHP

  • Thursday, April 7, 2016
  • by egeriis
  • Repository
  • 4 Watchers
  • 9 Stars
  • 2,665 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 8 Versions
  • 10 % Grown

The README.md

Opbeat PHP agent

Simple library for communicating with the Opbeat services., (*1)

Installation

Use Composer to install this library:, (*2)

composer require madsleejensen/opbeat-php

Configuration

You are required to provide a configuration handler which implements Illuminate/Contracts/Config/Repository., (*3)

Pass an instance of this config handler when initializing the Client., (*4)

Opbeat\Client will require the following settings:, (*5)

  • opbeat.organization_id (string)
  • opbeat.app_id (string)
  • opbeat.access_token (string)

The following settings are optional and have a default value:, (*6)

  • opbeat.enable_exception_handler (boolean, default: true)
  • opbeat.enable_error_handler (boolean, default: true)

Enable Client

When you've set up your configuration, simply create an instance of Opbeat\Client. Unless you set enable_exception_handler or enable_error_handler to false, the client will automatically register a handler for both., (*7)

$client = new \Opbeat\Client($config);

Manually Catch Exception

You can also catch exceptions manually. Opbeat\Client exposes a catchException method for this:, (*8)

public void catchException ( Exception $exception )

Contributing

If you experience any issues or have ideas for improvements, please open a pull request or an issue., (*9)

Pull requests must adhere to the PSR-2 and naming scheme of classes must adhere to PSR-4 with Opbeat as namespace prefix., (*10)

The Versions

07/04 2016

dev-master

9999999-dev

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

07/04 2016

v2.1.4

2.1.4.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

15/04 2015

v2.1.3

2.1.3.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

15/04 2015

v2.1.2

2.1.2.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

15/04 2015

v2.1.1

2.1.1.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

15/04 2015

v2.1

2.1.0.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

17/03 2015

v2.0.1

2.0.1.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen

12/03 2015

v2.0

2.0.0.0

Opbeat wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ronni Egeriis Persson
by Mads Lee Jensen