Download the PHP package michaeldrennen/bugsnag-api-client without Composer

On this page you can find all versions of the php package michaeldrennen/bugsnag-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bugsnag-api-client

BugSnagApiClient

A robust PHP client library designed to easily interface with the Bugsnag Data Access API (v2).

Installation

Install the package via Composer:

Authentication

To use this client, you must generate a Personal Auth Token from your Bugsnag dashboard.

  1. Log in to Bugsnag.
  2. Go to Settings > My Account > Personal auth tokens.
  3. Generate a new token.

Note: This token is different from your project-level "API Key" used for reporting errors.

Finding IDs and Credentials

Many API endpoints require specific IDs (like an Organization ID or Project ID). While you can extract these programmatically using the API itself (e.g., calling $client->getOrganizations()), you can also find them manually in your Bugsnag dashboard:

Basic Usage

Instantiate the client by passing your Personal Auth Token.

Retrieving Organizations

Get a list of all organizations your user account belongs to:

Get details for a specific organization by its ID:

Retrieving Projects

Fetch all projects under a specific organization:

Retrieving Errors and Events

Fetch a list of errors for a given project. You can optionally pass an array of query parameters to filter the results according to the Bugsnag API documentation.

Get details for a specific error:

Fetch events (individual occurrences of an error):

Get details for a specific event:

Making Custom Requests

If you need to hit an endpoint that isn't explicitly mapped in the client, you can use the generic get() method.

Testing

This package uses PHPUnit for testing. The test suite includes both mocked unit tests and live integration tests.

Running Unit Tests

Unit tests mock the Guzzle HTTP client, so no real API requests are made.

Running Integration Tests

To run the integration tests against the live Bugsnag API:

  1. Copy phpunit.xml.dist to phpunit.xml.
  2. Open phpunit.xml and replace your-real-token-here with your actual Bugsnag Personal Auth Token.
  3. Run PHPUnit:

Warning: Do not commit phpunit.xml to version control if it contains your real API token. The .gitignore file is already configured to ignore it.

License

The MIT License (MIT). Please see License File for more information.


All versions of bugsnag-api-client with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package michaeldrennen/bugsnag-api-client contains the following files

Loading the files please wait ...