An open API service indexing awesome lists of open source software.

https://github.com/highlight/highlight-php


https://github.com/highlight/highlight-php

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

        


docs-thumbnail



PRs Welcome
Join Discord Community
GitHub commit activity
GitHub closed issues


Docs - Community (Support & Feedback) - Feature request - Bug report

# [highlight.io](https://highlight.io): The open-source, fullstack monitoring platform.

highlight.io is a monitoring tool for the next generation of developers (like you!). Unlike the age-old, outdated tools out there, we aim to build a [cohesive](#we-build-a-cohesive-product), [modern](#we-build-for-todays-developer) and [fully-featured](#features) monitoring solution, something we wished WE had. And it's all open source :)

At a high level, highlight.io's feature set is:
- [Session Replay](#session-replay-understand-why-bugs-happen)
- [Error Monitoring](#error-monitoring-understand-what-bugs-are-happening)
- [Logging](#logging)

We strive to make highlight.io as easy to install as a few lines of code in any environment.

Read more about our [features](#features), [values](#our-values) and [mission](#our-mission) below, and get started at https://highlight.io today!

# Highlight PHP SDK

Below are some examples demonstrating usage of the PHP SDK:
```php
use Highlight\SDK\Common\HighlightOptions;
use Highlight\SDK\Highlight;

$projectId = '1jdkeo52';

// Use only a projectId to bootstrap Highlight
if (!Highlight::isInitialized()) {
Highlight::init($projectId);
}

// Use a HighlightOptions instance to bootstrap Highlight
$options = HighlightOptions::builder($projectId)->build();
if (!Highlight::isInitialized()) {
Highlight::initWithOptions($options);
}

// Use a HighlightOptions instance prepped with a serviceName to bootstrap Highlight
$options = HighlightOptions::builder($projectId)->serviceName('test-service-01')->build();

if (!Highlight::isInitialized()) {
Highlight::initWithOptions($options);
}

```