https://github.com/highlight/highlight-php
https://github.com/highlight/highlight-php
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/highlight/highlight-php
- Owner: highlight
- License: apache-2.0
- Created: 2024-02-07T00:58:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-21T21:43:43.000Z (over 1 year ago)
- Last Synced: 2025-01-05T12:09:39.287Z (5 months ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
![]()
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);
}```