How to Activate the Product
Our sample projects and report templates can help you learn the basics of working with our products.By default Reports.PHP runs in trial mode (with a watermark). This example shows the several ways to apply your license key to remove it.
License setup. Load or assign the license at application startup, before the first report component is created.
The license can be applied globally with
License setup. Load or assign the license at application startup, before the first report component is created.
// Globally, before creating components:
StiLicense::setPrimaryKey('6vJhGtLLLz2GNviWmUTrhSqnO...');
StiLicense::setPrimaryFile('stimulsoft.key');
// Or per report object:
$report->license->setKey('6vJhGtLLLz2GNviWmUTrhSqnO...');
$report->license->setFile('stimulsoft.key');StiLicense::setPrimaryKey(...)— applies the license key globally, before any component is created.StiLicense::setPrimaryFile('stimulsoft.key')— applies the license from a key file instead of a string.$report->license->setKey / setFile— applies the license to a single report object rather than globally.
The license can be applied globally with
StiLicense or on an individual report through its license property, using either the key string or a stimulsoft.key file. This removes the trial watermark and reminders.