PHPackages                             stellarsecurity/application-insights-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. stellarsecurity/application-insights-laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

stellarsecurity/application-insights-laravel
============================================

Stellar Security - Application Insights style telemetry for Laravel (HTTP, DB, jobs, mail, dependencies).

1.0.8(4mo ago)2390MITPHPPHP &gt;=8.1

Since Nov 28Pushed 4mo agoCompare

[ Source](https://github.com/StellarSecurity-Packages/stellarsecurity-application-insights-laravel)[ Packagist](https://packagist.org/packages/stellarsecurity/application-insights-laravel)[ RSS](/packages/stellarsecurity-application-insights-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Stellar Application Insights for Laravel
========================================

[](#stellar-application-insights-for-laravel)

A lightweight Laravel package that sends telemetry to Azure Application Insights (requests, exceptions, and custom events).

Built by

This package is designed to be safe by default:

- Telemetry **must never** break your application
- Queue sending is **disabled by default** to avoid silent data loss
- Connection String is the preferred configuration (modern App Insights)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel 10+ (also compatible with Laravel 11/12 when using matching illuminate components)
- Guzzle 7.x

Installation
------------

[](#installation)

```
composer require stellarsecurity/application-insights-laravel
```

Configuration
-------------

[](#configuration)

Publish the config (if your package provides a publish command). If not, create `config/stellar-ai.php` in your app.

### Recommended: Connection String

[](#recommended-connection-string)

Set one of the following in your `.env`:

```
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=xxxx;IngestionEndpoint=https://westeurope-0.in.applicationinsights.azure.com/
```

You may also use the package-specific key:

```
STELLAR_AI_CONNECTION_STRING=InstrumentationKey=xxxx;IngestionEndpoint=https://westeurope-0.in.applicationinsights.azure.com/
```

### Fallback: Instrumentation Key only

[](#fallback-instrumentation-key-only)

```
STELLAR_AI_INSTRUMENTATION_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
```

Example config (`config/stellar-ai.php`)
----------------------------------------

[](#example-config-configstellar-aiphp)

```
