PHPackages                             scoutapp/scout-apm-lumen - 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. scoutapp/scout-apm-lumen

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

scoutapp/scout-apm-lumen
========================

Scout Application Performance Monitoring Agent - https://scoutapm.com

1.4.0(2y ago)25.6kMIT

Since Apr 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/scoutapp/scout-apm-lumen)[ Packagist](https://packagist.org/packages/scoutapp/scout-apm-lumen)[ Docs](https://scoutapm.com/)[ RSS](/packages/scoutapp-scout-apm-lumen/feed)WikiDiscussions 1.5.x Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

Scout Lumen APM Agent
=====================

[](#scout-lumen-apm-agent)

Monitor the performance of PHP Lumen applications with Scout's PHP APM Agent. Detailed performance metrics and transaction traces are collected once the scout-apm package is installed and configured.

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

[](#requirements)

- PHP Version: PHP 7.2+ (PHP 8.3+ is recommended)
- Lumen Version: 5.5+

Quick Start
-----------

[](#quick-start)

A Scout account is required. [Signup for Scout](https://scoutapm.com/users/sign_up).

```
composer require scoutapp/scout-apm-lumen
```

Add the `ScoutApmServiceProvider` to your `bootstrap/app.php`, for example:

```
// $app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
$app->register(\Scoutapm\Laravel\Providers\ScoutApmServiceProvider::class);
```

Add the four middleware to your `bootstrap/app.php`, for example:

```
$app->middleware([
    // These three should be as early as possible in the pipeline:
    \Scoutapm\Laravel\Middleware\SendRequestToScout::class,
    \Scoutapm\Laravel\Middleware\IgnoredEndpoints::class,
    \Scoutapm\Laravel\Middleware\MiddlewareInstrument::class,

    // The rest of your middleware should go here
    // ...

    // This middleware should come last
    \Scoutapm\Laravel\Middleware\ActionInstrument::class,
]);
```

If you wish to use the `\Scoutapm\Laravel\Facades\ScoutApm` facade, you should also enable facades if you did not already by uncommenting the `withFacades()` call in `bootstrap/app.php`:

```
$app->withFacades();
```

### Configuration

[](#configuration)

In your `.env` file, make sure you set a few configuration variables:

```
SCOUT_KEY=ABC0ZABCDEFGHIJKLMNOP
SCOUT_NAME="My Lumen App"
SCOUT_MONITOR=true

```

Your key can be found in the [Scout organization settings page](https://scoutapm.com/settings).

#### Logging Verbosity

[](#logging-verbosity)

Once you have set up Scout and are happy everything is working, you can reduce the verbosity of the library's logging system. The library is intentionally *very* noisy by default, which gives us more information to support our customers if something is broken. However, if everything is working as expected, these logs can be reduced by setting the `log_level` configuration key to a higher `Psr\Log\LogLevel`. For example, if you are using `.env` configuration:

```
SCOUT_LOG_LEVEL=error

```

Any of the constants defined in `\Psr\Log\LogLevel` are acceptable values for this configuration option.

Documentation
-------------

[](#documentation)

For full installation and troubleshooting documentation, visit our [help site](https://docs.scoutapm.com/#lumen).

Support
-------

[](#support)

Please contact us at  or create an issue in this repo.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Recently: every ~72 days

Total

8

Last Release

888d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2734194006e4987a8e12379a63b4f6c0a4478b5818ea7ce677499b1f714a92d2?d=identicon)[asgrim](/maintainers/asgrim)

![](https://www.gravatar.com/avatar/0cf39a1b3822c41a047d30a077310450c93ee509f0753fede948d6453d3e5c30?d=identicon)[ScoutAPM](/maintainers/ScoutAPM)

---

Top Contributors

[![asgrim](https://avatars.githubusercontent.com/u/496145?v=4)](https://github.com/asgrim "asgrim (19 commits)")

---

Tags

monitoringperformancelumenapmdevelopment

### Embed Badge

![Health badge](/badges/scoutapp-scout-apm-lumen/health.svg)

```
[![Health](https://phpackages.com/badges/scoutapp-scout-apm-lumen/health.svg)](https://phpackages.com/packages/scoutapp-scout-apm-lumen)
```

###  Alternatives

[scoutapp/scout-apm-laravel

Scout Application Performance Monitoring Agent - https://scoutapm.com

23831.3k](/packages/scoutapp-scout-apm-laravel)[scoutapp/scout-apm-php

Scout Application Performance Monitoring Agent - https://scoutapm.com

17877.0k5](/packages/scoutapp-scout-apm-php)[tobiasdierich/gauge

An easy to use application performance monitor.

14413.1k](/packages/tobiasdierich-gauge)[sobanvuex/php-newrelic

PHP Library for New Relic Agent

16520.7k5](/packages/sobanvuex-php-newrelic)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
