Agent for PHP application

Downloading the Agent

  1. Download the files sixthSenseConfig.js and ssindex.js files. Contact Customer Support for the PHP link. Since the npm library is not installed in PHP, we can't install the agent using the npm command.

The link to download the files is as follows:

curl --header "PRIVATE-TOKEN::{{PRIVATE_TOKEN}}" --output sixthsense.tarz "{{AGENT_VERSION}}/sixthsense.tar.gz"
  1. Untar the downloaded agent file using the tar -xvzf sixthsense.tar.gz command:

  2. Copy both the files to the js folder under resources in the application source code.

  3. Change the necessary parameters (service, collector, authorization) in the SixthSenseConfig.js file.

  4. Import both the js file in a common PHP file (if not a common PHP view then in all PHP view files) in the bottom (IMPORTANT). For example:

<!-- SixthSense Script -->
<script src="{hostname}/ssindex.js" type="text/javascript"></script>
<script src="{hostname}/SixthSenseConfig.js" type="text/javascript"></script>