Download the PHP package tms-software/application-insights without Composer

On this page you can find all versions of the php package tms-software/application-insights. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package application-insights

Application Insights for PHP

Build Status Packagist Pre Release

This project extends the Application Insights API surface to support PHP. Application Insights is a service that allows developers to keep their application available, performing and succeeding. This PHP module will allow you to send telemetry of various kinds (event, trace, exception, etc.) to the Application Insights service where they can be visualized in the Azure Portal.

Status

This SDK is NOT maintained or supported by Microsoft even though we've contributed to it in the past. Note that Azure Monitor only provides support when using the supported SDKs. We’re constantly assessing opportunities to expand our support for other languages, so follow our GitHub Announcements page to receive the latest SDK news.

Requirements

PHP version >=5.4.2 is supported.

For opening the project in Microsoft Visual Studio you will need PHP Tools for Visual Studio. This is not required however.

Installation

We've published a package you can find on Packagist. In order to use it, first, you'll need to get Composer.

Once you've setup your project to use Composer, just add a reference to our package with whichever version you'd like to use to your composer.json file.

Or you can use the composer command to automatically add the package to your composer.json file.

Make sure you add the require statement to pull in the library:

Usage

Once installed, you can send telemetry to Application Insights. Here are a few samples.

Note: before you can send data to you will need an instrumentation key. Please see the Getting an Application Insights Instrumentation Key section for more information.

Initializing the client and setting the instrumentation key and other optional configurations

Setup Operation context

For correct Application Insights reporting you need to setup Operation Context, reference to Request

Sending a simple event telemetry item with event name

Sending an event telemetry item with custom properties and measurements

Sending more than one telemetry item before sending to the service is also supported; the API will batch everything until you call flush()

Sending a simple page view telemetry item with page name and url

Sending a page view telemetry item with duration, custom properties and measurements

Sending a simple metric telemetry item with metric name and value

Sending a metric telemetry item with point type, count, min, max, standard deviation and measurements

Sending a simple message telemetry item with message

Sending a simple request telemetry item with request name, url and start time

Sending a request telemetry item with duration, http status code, whether or not the request succeeded, custom properties and measurements

Sending an exception telemetry, with custom properties and metrics

Set the Client to gzip the data before sending

Registering an exception handler

Sending a successful SQL dependency telemetry item

Sending a failed HTTP dependency telemetry item

Sending any other kind dependency telemetry item

Changing the operation id (which links actions together)

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.


All versions of application-insights with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version >=5.0 <=6.3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tms-software/application-insights contains the following files

Loading the files please wait ....