PHPackages                             uptime-uat/monitoring - 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. uptime-uat/monitoring

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

uptime-uat/monitoring
=====================

Laravel package for uptime monitoring and API logging

00PHP

Since Sep 20Pushed 7mo agoCompare

[ Source](https://github.com/AbdulWadoodSiddiqui/package.laravel.uptime)[ Packagist](https://packagist.org/packages/uptime-uat/monitoring)[ RSS](/packages/uptime-uat-monitoring/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Uptime Monitoring Laravel Package
=================================

[](#uptime-monitoring-laravel-package)

A comprehensive Laravel package for monitoring API responses and route access, designed to work with the Uptime Monitoring platform.

Features
--------

[](#features)

- **API Response Logging**: Track API response times, status codes, and errors
- **Route Access Monitoring**: Monitor web route access patterns and performance
- **Security**: Automatic sanitization of sensitive data (passwords, tokens, etc.)
- **Flexible Configuration**: Customizable logging rules and exclusions
- **Client SDK**: Easy integration with remote monitoring platforms
- **Queue Support**: Optional queued logging for better performance

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

[](#installation)

1. Install the package via Composer:

```
composer require uptime-uat/monitoring
```

2. Publish the configuration and migrations:

```
php artisan monitoring:install
```

3. Run the migrations:

```
php artisan migrate
```

4. Configure your monitoring settings in `config/monitoring.php`

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

[](#configuration)

### Basic Configuration

[](#basic-configuration)

```
// config/monitoring.php
return [
    'enabled' => true,
    'log_errors_only' => false,
    'excluded_routes' => [
        'monitoring/*',
        'health',
    ],
];
```

### Environment Variables

[](#environment-variables)

```
MONITORING_ENABLED=true
MONITORING_LOG_ERRORS_ONLY=false
MONITORING_QUEUE_LOGGING=false
```

Usage
-----

[](#usage)

### Middleware

[](#middleware)

Add the monitoring middleware to your routes:

```
// In your routes/web.php
Route::middleware(['monitoring'])->group(function () {
    // Your routes here
});
```

Or apply it globally in your `bootstrap/app.php`:

```
->withMiddleware(function (Middleware $middleware) {
    $middleware->web(append: [
        \Uptime\Monitoring\Middleware\MonitoringMiddleware::class,
    ]);
})
```

### Client SDK

[](#client-sdk)

For sending data to a remote monitoring platform:

```
use Uptime\Monitoring\Client\MonitoringClient;

$client = new MonitoringClient(
    baseUrl: 'https://your-monitoring-platform.com',
    apiKey: 'your-api-key'
);

// Log API response
$client->logApiResponse([
    'method' => 'GET',
    'url' => 'https://api.example.com/users',
    'status_code' => 200,
    'response_time_ms' => 150.5,
    // ... other data
]);
```

API Endpoints
-------------

[](#api-endpoints)

The package provides API endpoints for receiving monitoring data:

- `POST /api/log-api-response` - Log API responses
- `POST /api/log-route-access` - Log route access
- `GET /api/stats` - Get project statistics
- `GET /api/health` - Health check

All API endpoints require authentication via the `X-API-Key` header.

Security
--------

[](#security)

The package automatically sanitizes sensitive data:

- **Headers**: Authorization, Cookie, X-API-Key, etc.
- **Fields**: Password, Token, Secret, Key, etc.
- **Response Bodies**: Limited to prevent logging large responses

Queue Support
-------------

[](#queue-support)

For better performance, you can enable queued logging:

```
// config/monitoring.php
'queue_logging' => true,
'queue_name' => 'monitoring',
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

Support
-------

[](#support)

For support, please contact us at  or visit our [documentation](https://your-monitoring-platform.com/documentation).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance44

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/def5148858c111af4fc3fd851d6574785f85a12d7a514ccc0aad0e3901018a69?d=identicon)[Abdul Wadood](/maintainers/Abdul%20Wadood)

---

Top Contributors

[![awadoodsiddiqui](https://avatars.githubusercontent.com/u/124144754?v=4)](https://github.com/awadoodsiddiqui "awadoodsiddiqui (3 commits)")

### Embed Badge

![Health badge](/badges/uptime-uat-monitoring/health.svg)

```
[![Health](https://phpackages.com/badges/uptime-uat-monitoring/health.svg)](https://phpackages.com/packages/uptime-uat-monitoring)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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