Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Client Laravel Package

app-insights-php/client

PHP wrapper for microsoft/application-insights that provides a configurable telemetry client for Microsoft App Insights. Simplifies integration (incl. bundle use) and validates telemetry against the 64KB size limit, throwing exceptions when exceeded.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability & Monitoring Roadmap: Accelerates integration of Microsoft Azure Application Insights into PHP/Laravel applications (now supporting PHP 8.1/8.2), reducing time-to-market for telemetry features (e.g., performance tracking, error monitoring, or custom events). The updated PHP version support aligns with modern Laravel ecosystems (Laravel 9+).
  • Build vs. Buy: Avoids reinventing telemetry infrastructure for PHP apps, leveraging Microsoft’s mature observability platform instead of building a custom solution. The removal of nix dependencies simplifies deployment for non-Unix environments (e.g., Windows-based Laravel deployments).
  • Cross-Platform Consistency: Enables unified monitoring across multi-stack apps (e.g., Laravel + .NET) using a single dashboard (Azure Portal), with improved compatibility for newer PHP stacks.
  • Compliance & Security: Supports GDPR/SOC2 requirements by leveraging Microsoft’s compliance-certified telemetry pipeline, now with broader PHP version parity.
  • Proactive Incident Response: Facilitates SRE/DevOps use cases like:
    • Real-time error alerts (e.g., 5xx spikes) with PHP 8.1/8.2 optimizations.
    • Dependency latency tracking (e.g., database/API calls) in modern PHP environments.
    • Custom business metric correlation (e.g., funnel drop-offs) with reduced friction for newer Laravel versions.

When to Consider This Package

Adopt if:

  • Your Laravel/PHP app runs in Azure or integrates with Microsoft’s ecosystem (e.g., Azure Functions, SQL DB) and uses PHP 8.1 or 8.2.
  • You need low-code telemetry without deep instrumentation expertise (e.g., for non-engineering stakeholders) in a modern PHP stack.
  • Your team prioritizes Azure-native tooling over open-source alternatives (e.g., Datadog, New Relic) and requires PHP 8.x compatibility.
  • You’re archiving legacy apps but want to retain observability (MIT license allows for embedded use) with updated PHP support.
  • Your deployment environment is non-Unix (e.g., Windows), as the removal of nix dependencies reduces friction.

Look elsewhere if:

  • You require active maintenance (package is still archived; last release in 2023, though now PHP 8.1/8.2 compatible).
  • Your stack is non-Microsoft (e.g., AWS/GCP) or prefers open-source telemetry (e.g., OpenTelemetry PHP).
  • You need advanced APM features (e.g., flame graphs, distributed tracing) beyond basic metrics/logs.
  • Your team lacks Azure expertise (setup requires familiarity with Instrumentation Key, SDKs).
  • Cost sensitivity: Azure App Insights pricing may exceed budget for high-volume telemetry.
  • You require PHP 8.3+ support or other newer PHP features.

How to Pitch It (Stakeholders)

For Executives: "This updated package now supports PHP 8.1/8.2, aligning with our modern Laravel stack (e.g., Laravel 9+). It lets us plug Microsoft Azure Application Insights into our app with minimal effort—no need to build or buy a custom monitoring tool. We’ll get real-time alerts on errors, track user journeys, and correlate business metrics (e.g., cart abandonment) with technical performance—all in a dashboard our team already uses. The removal of nix dependencies also simplifies deployment, especially for non-Unix environments. It’s a low-risk way to add observability, especially if we’re already in Azure or using PHP 8.x."

For Engineering: *"The app-insights-php/client wrapper (v0.3.0) now supports PHP 8.1/8.2, making it viable for Laravel 9+ apps. Key benefits:

  • Modern PHP support: No compatibility issues with newer Laravel versions.
  • Easy setup: Drop-in PHP SDK with Laravel-friendly helpers (e.g., trackException(), trackRequest()).
  • Azure integration: Leverage existing Instrumentation Keys, Log Analytics, or Power BI dashboards.
  • Simplified deployment: Removal of nix dependencies reduces friction for Windows/Laravel Forge deployments. Tradeoff: If we need long-term support, we’d need to fork/maintain it or switch to OpenTelemetry. For now, it’s a quick win for error tracking and custom events in PHP 8.x environments."*

For DevOps/SRE: *"This update gives us:

  1. Automatic dependency tracking (e.g., database query latency) in PHP 8.1/8.2 without manual APM agents.
  2. Alerting rules tied to Azure Monitor (e.g., ‘Alert on >1% failed requests’) with modern PHP stack compatibility.
  3. Correlation IDs for end-to-end tracing across services, now optimized for newer PHP versions. Caveat: Since it’s archived, we’d need to validate it handles our Laravel version (e.g., 10.x) and scale (e.g., high-throughput telemetry). The lack of PHP 8.3+ support may limit future-proofing."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor