Download the PHP package cleaniquecoders/app-pulse without Composer
On this page you can find all versions of the php package cleaniquecoders/app-pulse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/app-pulse
More information about cleaniquecoders/app-pulse
Files in cleaniquecoders/app-pulse
Package app-pulse
Short Description AppPulse provide a comprehensive, easy-to-use monitoring tool with uptime tracking, SSL certificate checks, and customisable notifications.
License MIT
Homepage https://github.com/cleaniquecoders/app-pulse
Informations about the package app-pulse
AppPulse
A comprehensive, easy-to-use monitoring tool with uptime tracking, SSL certificate checks, and customizable notifications designed for Laravel applications.
AppPulse allows developers to monitor websites efficiently by:
- Tracking website uptime and logging response times.
- Validating SSL certificates and sending alerts when expiry is near.
Installation
1. Install the Package
You can install AppPulse via Composer:
2. Publish Configuration & Migrations
Run the following commands to publish the configuration and migration files:
This will generate the config file at:
Example config:
Next, run the migrations to create the necessary database tables:
3. Set Up Laravel Scheduler
Ensure that Laravel’s scheduler is running. Add the following cron entry to your server to run the scheduler every minute:
The monitor checks will now run at intervals defined in config/app-pulse.php
(default: every 10 minutes).
Usage Example
1. Adding Monitors
Use the following logic to create a new monitor record in your application:
2. Running Checks Manually
You can trigger all monitor checks manually with the following command:
3. Automated Checks with Scheduler
-
Ensure Laravel’s scheduler is configured to run every minute on your server:
-
The AppPulse scheduler will run every X minutes, as defined in the
config/app-pulse.php
: - When the scheduler runs, it will:
- Dispatch a
CheckMonitorJob
to check uptime. - Dispatch a
CheckSslJob
if SSL monitoring is enabled.
- Dispatch a
4. Handling Events
Developers can extend AppPulse by listening to the following events:
MonitorUptimeChanged
: Fired when a monitor’s uptime status changes.SslStatusChanged
: Fired when a monitor's SSL status changes.
Example Event Listener Registration (in EventServiceProvider
):
Testing
Run the tests with:
Changelog
See CHANGELOG for recent changes.
Contributing
Please see CONTRIBUTING for details on contributing.
Security Vulnerabilities
For security concerns, review our security policy.
Credits
- Nasrul Hazim Bin Mohamad
- All Contributors
License
This package is open-sourced software licensed under the MIT License.
All versions of app-pulse with dependencies
cleaniquecoders/traitify Version ^1.0
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16
spatie/ssl-certificate Version ^2.6