Skip to content

truenary/retack_pkg_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RetackSDK

RetackSDK is a PHP library for integrating with Retack AI's error reporting service.

Installation

You can install the RetackSDK via Composer:

composer require retack/retack-sdk

Uage

Initializing the SDK

First, initialize the RetackSDK with your Environment key:

use Retack\RetackSDK;

$retackSDK = new RetackSDK('your_environment_key_here');

Reporting Errors

To report an error asynchronously:

$error = "An error occurred";
$stackTrace = new Exception("Sample exception");
$userContextExtras = ['username' => exampleuser ];

$result = $retackSDK->reportErrorAsync($error, $stackTrace, $userContextExtras);

if ($result) {
    echo "Error reported successfully";
} else {
    echo "Failed to report error";
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages