Integration Guide - PHP Symfony 1.4 SDK

Moesif Symfony(1.4) SDK

Official SDK for PHP Symfony(1.4) to automatically capture incoming HTTP traffic.

Source Code on GitHub

How to install

Via Composer

$ composer require moesif/moesif-symfony1.4

or add ‘moesif/moesif-symfony1.4’ to your composer.json file accordingly.

Configuration Options

applicationId

Type: String Required, a string that identifies your application.

debug

Type: Boolean Optional, If true, will print debug messages using sfFileLogger

identifyUserId

Type: String Optional, (Highly Recommend) Moesif automatically try to obtain end userId, In case you use a non standard way of injecting user, you can do so with by setting X-Moesif-User-Id header in the API request.

identifyCompanyId

Type: String Optional, Set X-Moesif-Company-Id header in the API request to set the companyId for the event.

identifySessionToken

Type: String Optional, Moesif automatically sessionizes by processing at your data, but you can override this by setting X-Moesif-Session-Token header in the API request if you’re not happy with the results.

maskRequestHeaders

Type: String Optional, Set X-Moesif-Mask-Request-Headers headers, which is a comma seperated string, which will mask your sensitive request headers.

For example - X-Moesif-Mask-Request-Headers should be set to header1, header2 to mask header1 and header2 from your API call request header.

maskRequestBody

Type: String Optional, Set X-Moesif-Mask-Request-Body headers, which is a comma seperated string, which will mask your sensitive request body.

For example - X-Moesif-Mask-Request-Body should be set to fieldA, fieldB to mask fieldA and fieldB from your API call request body.

maskResponseHeaders

Type: String Optional, Set X-Moesif-Mask-Response-Headers headers, which is a comma seperated string, which will mask your sensitive response headers.

For example - X-Moesif-Mask-Response-Headers should be set to header1, header2 to mask header1 and header2 from your API call response header.

maskResponseBody

Type: String Optional, Set X-Moesif-Mask-Response-Body headers, which is a comma seperated string, which will mask your sensitive response body.

For example - X-Moesif-Mask-Response-Body should be set to fieldA, fieldB to mask fieldA and fieldB from your API call response body.

skip

Type: String Optional, Set X-Moesif-Skip header in the API request to skip sending a particular event to Moesif if the header value matches the URI for the request.

For example - if the request URI is - http://localhost:8888/index.php and you’ve set the X-Moesif-Skip header to index, it will skip sending that particular event to Moesif.

logBody

Type: Boolean Optional, If set to false will not log request and response body to Moesif.

An Example Symfony 1.4 App with Moesif Integrated

Moesif Symfony-1.4 Example

Other integrations

To view more documentation on integration options, please visit the Integration Options Documentation.