Looking to hire Laravel developers? Try LaraJobs

laravel-composer-monitor maintained by mertaydin

Description
A clean Composer dependency, update and security monitor for Laravel applications.
Last update
2026/11/16 22:39 (dev-main)
License
Links
Downloads
0

Comments
comments powered by Disqus

Laravel Composer Monitor

Latest Version on Packagist Total Downloads License Tests

A lightweight Laravel dashboard for monitoring Composer dependency health. Review installed packages, available updates, security advisories, abandoned dependencies and the constraints blocking updates — all from one place.

Features

  • Dependency inventory: browse installed production and development packages, versions and direct/transitive status.
  • Outdated packages: identify dependencies with newer releases available.
  • Security monitoring: review Composer security audit advisories and affected versions.
  • Abandoned packages: identify packages marked as abandoned and suggested replacements.
  • Update blockers: inspect dependency constraints that prevent an update.
  • Dashboard and Artisan command: run checks from the web interface or CLI.
  • Six dashboard languages: Turkish, English, Arabic, Spanish, Hindi and Simplified Chinese.
  • Appearance preferences: light, dark and system themes.
  • Dependency alerts: configurable update thresholds and watched packages, with dashboard, email, database notification, Slack and Discord delivery.
  • Dashboard access control: authentication is required by default, with an optional callback for application-specific authorization.
  • Configurable runtime: choose the Composer executable, timeout, cache and route middleware.
  • Laravel package discovery: automatically registers its service provider.

Requirements

  • PHP 8.2 or newer
  • Laravel 10, 11, 12 or 13
  • Composer 2

Installation

Install the package with Composer:

composer require mertaydin/laravel-composer-monitor

The dashboard is available at:

/composer-monitor

Publish the configuration file to customize the package:

php artisan vendor:publish --tag=composer-monitor-config

Usage

Run a dependency check from the dashboard or with Artisan:

php artisan composer-monitor:check

The monitor reads your application's composer.json and composer.lock, then runs Composer's locked audit and outdated checks. It does not install, update or modify your dependencies.

Language and appearance

The dashboard includes six languages: Türkçe, English, العربية, Español, हिन्दी and 简体中文. Select a language from the dashboard header; the preference is stored in the current session. The appearance selector supports light, dark and system themes.

Configuration

Key Default Description
route.enabled true Register the dashboard routes
route.prefix composer-monitor Dashboard URL prefix
route.name composer-monitor. Route name prefix
route.middleware ['web'] Middleware applied to dashboard routes
layout null Optional Blade layout to extend
composer_binary composer Composer executable path
timeout 120 Composer process timeout in seconds
blocker_limit 30 Maximum outdated packages checked for update blockers
cache.store Default Optional Laravel cache store
cache.key composer-monitor:latest Cache key
cache.ttl null Cache lifetime; null keeps the latest result

Access control

The dashboard uses the web and auth middleware by default. You can customize the middleware in config/composer-monitor.php. For additional application-specific authorization, register a callback using the facade in a service provider:

use Illuminate\\Http\\Request;
use MertAydin\\ComposerMonitor\\Facades\\ComposerMonitor;

public function boot(): void
{
    ComposerMonitor::auth(fn (Request $request): bool =>
        $request->user()?->hasRole('SuperAdmin') ?? false
    );
}

The callback receives the current request. Return true to allow access or false to respond with HTTP 403. The callback is optional; the configured route middleware still applies.

The dashboard exposes dependency and security information. Restrict access to trusted users by configuring middleware in config/composer-monitor.php:

'route' => [
    'middleware' => ['web', 'auth'],
],

For production applications, do not expose the dashboard publicly.

License

This package is open-sourced software licensed under the MIT license.