Download the PHP package mondago/laravel-application-insights without Composer

On this page you can find all versions of the php package mondago/laravel-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 laravel-application-insights

Application Insights for Laravel

Installation

Add the following to your composer.json file:

and require it by adding the following line to your composer.json file under "require":

Optionally, you can publish the config file of this package with this command:

Middleware

As a convenience you may choose to use the Mondago\ApplicationInsights\Middleware\TrackRequest middleware which will send the request and response to Application Insights. The middleware utilizes terminable middleware from Laravel to ensure that tracking the request doesn't block the response being sent.

Since 0.6.2, if the request has a session started, this middleware will set the session id as the anonymous user id to allow tracking of user flows. Make sure to include this in each route group you'd like to track requests for, as attaching it to the global middleware will result in the session never being set. You can disable this by setting the environment variable APPINSIGHTS_TRACK_ANONYMOUS_USERS to false.

Logging

Since 0.6.2 a custom monolog handler is provided for sending logs to application insights. This handler captures exceptions as well as other log levels. Exceptions are tracked as exceptions, and log messages are sent with their closes matching severity level.

To use this, update your config/logging.php configuration with the following:

You might then choose to include this in your stack log handler:

Logging Migrations

This package will automatically send migration events to application insights when enabled. Since 0.6.2 this includes when no migrations were ran. This is great for container images that run php artisan migrate on startup.

Support Matrix

Our Version Laravel Version
^0.7.0 ^10.0
^0.6.0 ^9.0
^0.4.0 ^8.0
^0.3.0 ^7.0

All versions of laravel-application-insights with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.2
laravel/framework Version ^9.19
mondago/application-insights Version ^0.5.1
monolog/monolog Version ^2.0
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 mondago/laravel-application-insights contains the following files

Loading the files please wait ....