PHPackages                             mantas-done/laravel-apm - 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. mantas-done/laravel-apm

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

mantas-done/laravel-apm
=======================

Application monitoring for Laravel

v1.0.10(2y ago)5956.9k↓63.6%9Blade

Since Jan 26Pushed 1y ago3 watchersCompare

[ Source](https://github.com/mantas-done/laravel-apm)[ Packagist](https://packagist.org/packages/mantas-done/laravel-apm)[ RSS](/packages/mantas-done-laravel-apm/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

Laravel APM
===========

[](#laravel-apm)

Monitor requests/cron/queue execution times in production.

If you have a question:

- which pages have the slowest loading time?
- which page to optimize to reduce the server load?

Then this package is for you.

[![](https://camo.githubusercontent.com/ac8a8df2621451ebc44f978e0aac3bdffbfce971f6c316116f17fff74581be57/68747470733a2f2f692e696d6775722e636f6d2f795066516965682e706e67)](https://camo.githubusercontent.com/ac8a8df2621451ebc44f978e0aac3bdffbfce971f6c316116f17fff74581be57/68747470733a2f2f692e696d6775722e636f6d2f795066516965682e706e67)

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

[](#installation)

Supported Laravel versions: 8 ... 11+

```
composer require mantas-done/laravel-apm

```

Add route to your routes/web.php file (don't forget securing it from unwanted visitors)

```
Route::get('/apm', '\Done\LaravelAPM\ApmController@index')->name('apm');
```

Daily clear log files by adding scheduled job to App/Console/Kernel.php

```
$schedule->command('apm:clear')->daily();

```

Why?
----

[](#why)

Laravel APM can show pages that have the biggest impact on the server load. When you are developing the website, it is hard to tell which pages will receive the most pageviews and which will use the most resources: (per page resource usage) x (pageviews) = (this package stats)

Running this package in production has minimal impact on server load.

Technical
---------

[](#technical)

This package logs every user request to a file (storage/app/apm/apm-2020-01-01.txt). On average logging adds an overhead of less than 1 ms to each request (0.001 second).

Customizations
--------------

[](#customizations)

Copy /vendor/mantas-done/laravel-apm/config/apm.php file to /config/apm.php Then edit /config/apm.php values to your liking.

```
return [
    'enabled' => env('APM', true),
    'per_page' => 100, // how many results per page to show
    'sampling' => 1, // logs only part of requests. 1 - 100%, 0.1 - 10% of requests.
    'slow' => 5, // log queries of pages that spent in SQL more than 10 seconds
];
```

Recommendations
---------------

[](#recommendations)

If you are using Closures for scheduler, it is recommended to add -&gt;setName('some-name');, to be able to distinguish different Closures in APM logs.

```
$schedule->call(function () {
    DB::table('recent_users')->delete();
})->daily()->setName('some-name'); // add ->setName()
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~134 days

Recently: every ~12 days

Total

12

Last Release

879d ago

Major Versions

v0.9.0 → v1.0.12020-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/a27dcc57cd92e476d505f5ee315c84efd25fe98fe2d72a5dbd0f17b50b883e49?d=identicon)[mantas783](/maintainers/mantas783)

---

Top Contributors

[![mantas-done](https://avatars.githubusercontent.com/u/17127206?v=4)](https://github.com/mantas-done "mantas-done (40 commits)")

---

Tags

apmlaravelmonitoring

### Embed Badge

![Health badge](/badges/mantas-done-laravel-apm/health.svg)

```
[![Health](https://phpackages.com/badges/mantas-done-laravel-apm/health.svg)](https://phpackages.com/packages/mantas-done-laravel-apm)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[nightowl/agent

NightOwl monitoring agent — collects telemetry from laravel/nightwatch and writes to PostgreSQL

771.7k](/packages/nightowl-agent)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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