Installing Burst Statistics with Composer

Burst Statistics makes it easy to track visitor behavior in WordPress. With Composer, you can manage both the free and Pro versions of the plugin as part of your deployment workflow.

This guide covers:

  • Installing the free version from Packagist
  • Installing the Pro version from a private Composer repository

Installing the Free Version

The free version of Burst Statistics is available publicly on Packagist.

1. Require it via Composer

Open your terminal and run:

composer require burst-statistics/burst-statistics

2. Optional: Custom plugin path

As WordPress plugins live in a non composer default directory, you can add the following to your composer.json:

{
  "extra": {
    "installer-paths": {
      "wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
    }
  },
  "config": {
    "allow-plugins": {
      "composer/installers": true
    }
  }
}

Installing the Pro Version

To install the Pro version via Composer, you need:

  • A valid license key
  • Your site’s domain name
  • Access to the private Composer repository hosted by Burst Statistics

1. Add the repository to composer.json

Use this example and adjust the license and domain parameters accordingly:

{
"name": "my-awesome-site",
"version": "1.0.0",
"description": "My Awesome Website with Burst",
"require": {
"burst-statistics/burst-pro": "*",
"composer/installers": "^1.12"
},
"repositories": [
{
"type": "composer",
"url": "https://burst-statistics.com/packages/packages.json?license=YOUR_LICENSE_KEY&domain=your-domain.com"
}
],
"extra": {
"installer-paths": {
"wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
}
},
"config": {
"allow-plugins": {
"composer/installers": true
}
}
}

Note:

  • Replace YOUR_LICENSE_KEY with your actual license key
  • Replace your-domain.com with the domain where the plugin will be installed


2. Install the Pro plugin

Run this command:

composer require burst-statistics/burst-pro

If the license is valid and the domain is authorized, Composer will install the plugin into your wp-content/plugins/directory.


Troubleshooting

If you run into issues:

  • Double-check that your license key is correct
  • Make sure your server can connect to https://burst-statistics.com
  • Confirm the domain matches the license
  • Use Composer 2.x and PHP 7.4 or higher

For help, feel free to contact out support.