PHP code example of ayewo / highlight-php-sdk-test
1. Go to this page and download the library: Download ayewo/highlight-php-sdk-test library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ayewo / highlight-php-sdk-test example snippets
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);
}