Download the PHP package preprio/opsgenie without Composer

On this page you can find all versions of the php package preprio/opsgenie. 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 opsgenie

Prepr Laravel Opsgenie SDK

This SDK is used by the Prepr team to monitor Laravel projects in Atlassian Opsgenie.

Installation

Composer

Config

Publish opsgenie.php config

Configuration

Update .env file with the api access token (API_ACCESS_TOKEN) and service id (SERVICE_ID).

Example:

Optional configuration

Prefix

It's optional to add a prefix to the message that's send to Opsgenie, to clearify what service/repo. You can add a prefix by configuring the following line in your .env file.

Examples:

config result
PREFIX [PREFIX] Message
preprio/mutation.prepr.io [preprio/mutation.prepr.io] MESSAGE
mutation-api [mutation-api] MESSAGE

Default tags

It's optional to add default tags to the message that's send to Opsgenie. You can add a default tags by configuring the following line in your .env file. (comma-separated list)

Docs OpsGenie

Usage

Base

For an incident

For an alert

Priority functions (required)

Set incident priority.

Priority Function
Critical ->P1() or ->critical()
High ->P2() or ->high()
Moderate ->P3() or ->moderate()
Low ->P4() or ->low()
Informational ->P5() or ->informational()

Message (required)

Set incident title.

Description (optional)

Set incident description.

Details (optional)

Set incident details. (Key-Value list)

Tags (optional)

Set incident tags. (Simple list)

Send (required)

Send incident to Opsgenie.

Full example:

Function above combined.

Alert attachments

Attach Resource/Blob (optional)

You can add attachments to alerts like log files, exception files, renders, json, etc. By adding the following function(s) after ->send().

You can also attach multiple files

Attach files (optional) ⚠️ NOT TESTED

Attach example/combined

You can use attach-function multiple times, and mix them in random order. For example 2x ->attachBlob(), 1x ->attachFile().


All versions of opsgenie with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^4|^5|^6|^7
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 preprio/opsgenie contains the following files

Loading the files please wait ....