Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
/ sdk-php Public archive

PHP SDK to allow your application to send events while a session is being recorded

License

Notifications You must be signed in to change notification settings

devqaly/sdk-php

Repository files navigation

This package allows you to send events to devqaly while a session is being recorded

Latest Version on Packagist Tests Total Downloads

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require devqaly/devqaly-php

Usage

$devqaly = new Devqaly\DevqalyClient();

$sessionId = "5b03dfdf-4ad4-40ef-a67e-62b738ab76b6";
$sessionSecret = "icURAAVjCuLFaYEgUdXaW1dkDcqWNZ7bo9J1ibjfhI28xVkzQUdTRCZcsjd9";

$devqaly->createDatabaseEventTransaction($sessionId, $sessionSecret, [
    'sql' => $sql,
    'executionTimeInMilliseconds' => $executionTimeInMilliseconds
]);

$devqaly->createLogEvent($sessionId, $sessionSecret, [
    'level' => $level, // can be 'emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'informational' or 'debug'
    'log' => $log
]);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

About

PHP SDK to allow your application to send events while a session is being recorded

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages