Download the PHP package axelvds/laravel-uptime-monitor-extended without Composer

On this page you can find all versions of the php package axelvds/laravel-uptime-monitor-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-uptime-monitor-extended

Laravel Uptime Monitor Extended

Status Version

An extended uptime monitoring package for Laravel that builds upon Spatie's Laravel Uptime Monitor with additional features including IP/ping monitoring, per-monitor frequency settings, active/inactive toggles, and built-in dashboard widgets.

Architecture: The core monitoring functionality is available for any Laravel project. If you're using Laravel Filament, you can optionally enable Filament resources and widgets for a complete admin panel experience.

Features

Core Features (Available in All Laravel Projects)

Filament Integration (Optional)

If you're using Laravel Filament, you also get:

Requirements

Optional (for Filament integration):

Installation

  1. Install the package via Composer:

Note: Spatie's Laravel Uptime Monitor is automatically installed as a dependency. You don't need to install it separately.

  1. Publish Spatie's migrations:

  2. Publish this package's configuration and migrations:

This will publish:

  1. Run the migrations:

This will automatically run migrations in the correct order:

  1. Spatie's migrations - Creates the monitors table
  2. This package's migrations - Extends the monitors table and creates the monitors_logs table

Note: The migrations are timestamped to ensure they run in the correct order automatically. If you get an error about the monitors table not existing, make sure you've published Spatie's migrations first (step 2).

Filament Integration (Optional)

If you're using Laravel Filament and want to use the Filament resources and widgets:

  1. Install Filament (if not already installed):

  2. Register the resources and widgets in your Filament panel provider (typically app/Providers/Filament/AdminPanelProvider.php) and make sure they are not already there:

Alternatively, you can register them directly in your panel method:

Configuration

After publishing the configuration file, you can customize the settings in config/uptime-monitor-extended.php:

Usage

Creating Monitors

HTTP/HTTPS Monitor

Ping Monitor

Checking Monitors

Run the extended check command:

Scheduling Checks

Automatic Scheduling (Default)

By default, the package automatically registers scheduled commands. No manual configuration is required! The commands are scheduled to run:

Note: Automatic scheduling may not be visible in your routes/console.php file, but the commands are still registered and will run. If you prefer to see and control the scheduling explicitly, use manual scheduling below.

Manual Scheduling (Optional)

If you prefer to manually control scheduling or want to see the scheduled commands explicitly in your routes/console.php file, you can disable auto-scheduling by setting in your .env:

Then add to your routes/console.php (Laravel 11+):

Or for Laravel 10, add to your app/Console/Kernel.php:

Important: Make sure your Laravel scheduler is running. Add this to your crontab:

Dashboard

Filament Dashboard (Recommended)

If you're using Filament, the package automatically provides:

These will appear in your Filament admin panel automatically once registered.

Legacy Dashboard (Non-Filament Projects)

For projects without Filament, a simple Blade-based dashboard is available:

Access the dashboard at: http://your-app.com/uptime-monitor

The dashboard provides:

Note: The legacy dashboard is automatically disabled if Filament is detected. To enable it manually, set dashboard.enabled to true in your config file.

API Endpoints

The package provides API endpoints for dashboard data (only available when using the legacy dashboard):

Managing Monitors

Monitor Types

Response Checking

For HTTP/HTTPS monitors, you can check for specific content in responses using the look_for_string field:

How it works:

Example use cases:

Log Retention

Configure log retention in the config file or via environment variable:

Set to null to keep logs indefinitely.

Platform Compatibility

Ping Monitoring

Ping monitoring works on:

Note: Some shared hosting environments may restrict ping functionality. In such cases, use HTTP monitoring instead.

Events

This package extends Spatie's events. You can listen to:

Database Schema

The package extends Spatie's monitors table with:

It also creates a monitors_logs table for storing check history.

Troubleshooting

Ping not working

Monitors not checking

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Credits

This package extends Spatie's Laravel Uptime Monitor package.

Support

For issues and questions, please open an issue on GitHub.


All versions of laravel-uptime-monitor-extended with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0
illuminate/console Version ^10.0|^11.0
spatie/laravel-uptime-monitor Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package axelvds/laravel-uptime-monitor-extended contains the following files

Loading the files please wait ...