PHPackages                             brilliant-packages/betteruptime-laravel - 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. brilliant-packages/betteruptime-laravel

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

brilliant-packages/betteruptime-laravel
=======================================

BetterUptime Monitoring and Heartbeats

1.1.2(1y ago)37.9k[1 issues](https://github.com/LuminFire/BetterUptime-Laravel/issues)MITPHPPHP ^7.4 || ^8.0

Since Feb 3Pushed 1y ago3 watchersCompare

[ Source](https://github.com/LuminFire/BetterUptime-Laravel)[ Packagist](https://packagist.org/packages/brilliant-packages/betteruptime-laravel)[ Docs](https://betteruptime-laravel.brilliantpackages.com/)[ GitHub Sponsors](https://github.com/LuminFire)[ RSS](/packages/brilliant-packages-betteruptime-laravel/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (11)Used By (0)

Laravel BetterUptime
====================

[](#laravel-betteruptime)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0fb27ae236a2942cdfd16b60ad8b372220c64e67ed2ddfeb9b3fa6c15caa4d4d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272696c6c69616e742d7061636b616765732f626574746572757074696d652d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brilliant-packages/betteruptime-laravel)[![Total Downloads](https://camo.githubusercontent.com/b292a74331026e2cf540a50e5ce48d4ef57fe92f240619c3a59f776faf3dcbdf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272696c6c69616e742d7061636b616765732f626574746572757074696d652d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brilliant-packages/betteruptime-laravel)

This packages provides a route for BetterUptime to monitor and excludes it from Telescope monitoring.

It also enables BetterUptime heartbeat monitoring.

[![cover image](documentation/images/BetterUptime-Laravel-OpenGraph.png)](documentation/images/BetterUptime-Laravel-OpenGraph.png)

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

[](#installation)

You can install the package via composer:

```
composer require brilliant-packages/betteruptime-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --provider="BrilliantPackages\BetterUptimeLaravel\BetterUptimeLaravelServiceProvider" --tag="betteruptime-laravel-config"
```

This is the contents of the published config file:

```
return [
    'monitor' => [
        'enabled' => env('BETTER_UPTIME_MONITOR_ENABLED', true),
        'path' => env('BETTER_UPTIME_MONITOR_PATH', 'better-uptime'),
    ],

    'heartbeat' => [
        'enabled' => env('BETTER_UPTIME_HEARTBEAT_ENABLED', true),
        'url' => env('BETTER_UPTIME_HEARTBEAT_URL'),
        'minutes' => env('BETTER_UPTIME_HEARTBEAT_FREQUENCY', 5),

        'retry' => [
            'count' => env('BETTER_UPTIME_HEARTBEAT_RETRY_COUNT', 5),
            'delay' => env('BETTER_UPTIME_HEARTBEAT_RETRY_DELAY', 3000),
        ],
    ],
];
```

Usage
-----

[](#usage)

Monitoring
----------

[](#monitoring)

Create a BetterUptime monitor using `https://{yourDomain}/better-uptime` as the URL (you can change the path using the `BETTER_UPTIME_MONITOR_PATH` environment variable).

You can either set BetterUptime to alert you when it “Becomes unavailable” or “Doesn’t contain keyword”; if you choose the keyword method, use your app’s name (`APP_ENV` environment variable) or “BetterUptime” as the keyword.

To disable the route, set `BETTER_UPTIME_MONITOR_ENABLED=false`.

Heartbeat
---------

[](#heartbeat)

Create a BetterUptime heartbeat monitor with your desired name, frequency, and grace period.

Determine the frequency in minutes (e.g., 1 hour = 60, 1 day = 1440, etc.) and set these environment variables:

```
BETTER_UPTIME_HEARTBEAT_URL=https://betteruptime.com/api/v1/heartbeat/abc123
BETTER_UPTIME_HEARTBEAT_FREQUENCY=5

```

To disable heartbeat monitoring, remove the `BETTER_UPTIME_HEARTBEAT_URL` or set `BETTER_UPTIME_HEARTBEAT_ENABLED=false`.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](documentation/CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [LuminFire](https://luminfire.com)
- [Andrew Minion](https://andrewrminion.com/)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~157 days

Recently: every ~249 days

Total

9

Last Release

711d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.0.5PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8026272df856a5afa94a27a51ce9f775c81b6556dd33378e8489330770353f67?d=identicon)[brilliantpackages](/maintainers/brilliantpackages)

---

Top Contributors

[![andrewminion-luminfire](https://avatars.githubusercontent.com/u/47227887?v=4)](https://github.com/andrewminion-luminfire "andrewminion-luminfire (45 commits)")[![jacobnollette-luminfire](https://avatars.githubusercontent.com/u/60987066?v=4)](https://github.com/jacobnollette-luminfire "jacobnollette-luminfire (2 commits)")

---

Tags

monitoringbrilliant-packagesbetteruptime-laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brilliant-packages-betteruptime-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/brilliant-packages-betteruptime-laravel/health.svg)](https://phpackages.com/packages/brilliant-packages-betteruptime-laravel)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2352.1M4](/packages/inspector-apm-inspector-laravel)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

162476.0k](/packages/keepsuit-laravel-opentelemetry)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[spatie/laravel-error-share

Share your Laravel errors to Flare

431.3M5](/packages/spatie-laravel-error-share)

PHPackages © 2026

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