PHPackages                             vormkracht10/laravel-ok - 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. vormkracht10/laravel-ok

Abandoned → [backstagephp/laravel-ok](/?search=backstagephp%2Flaravel-ok)Library[Logging &amp; Monitoring](/categories/logging)

vormkracht10/laravel-ok
=======================

Is your Laravel app OK? Health checks running in production to ensure you can sleep well at night and be sure everything is still OK.

614.4k[1 PRs](https://github.com/backstagephp/laravel-ok/pulls)PHPCI passing

Since Sep 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/backstagephp/laravel-ok)[ Packagist](https://packagist.org/packages/vormkracht10/laravel-ok)[ RSS](/packages/vormkracht10-laravel-ok/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Is your Laravel app OK?
=======================

[](#is-your-laravel-app-ok)

[![Total Downloads](https://camo.githubusercontent.com/ab99043b5b00f798d6b1240b22a1aa2b52179e58498b91e9b142a9babe376ab9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261636b73746167652f6c61726176656c2d6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backstage/laravel-ok)[![Tests](https://github.com/backstagephp/laravel-ok/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/backstagephp/laravel-ok/actions/workflows/run-tests.yml)[![PHPStan](https://github.com/backstagephp/laravel-ok/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/backstagephp/laravel-ok/actions/workflows/phpstan.yml)[![GitHub release (latest by date)](https://camo.githubusercontent.com/b5d2152ec19e54e5e690c85ca70c9b2e342fcd8666a68eaa65e4293330ffb9bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6261636b73746167657068702f6c61726176656c2d6f6b)](https://camo.githubusercontent.com/b5d2152ec19e54e5e690c85ca70c9b2e342fcd8666a68eaa65e4293330ffb9bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6261636b73746167657068702f6c61726176656c2d6f6b)[![Packagist PHP Version Support](https://camo.githubusercontent.com/1cb3a82e4c1976ec0734660c665859d6126a7319973236ca70b9de3cfbd7b5ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6261636b73746167652f6c61726176656c2d6f6b)](https://camo.githubusercontent.com/1cb3a82e4c1976ec0734660c665859d6126a7319973236ca70b9de3cfbd7b5ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6261636b73746167652f6c61726176656c2d6f6b)[![Latest Version on Packagist](https://camo.githubusercontent.com/49c677121116232ba750c861d9c0cd7c1406edf45fa1ac3d6e92e8b4d50a6069/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261636b73746167652f6c61726176656c2d6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backstage/laravel-ok)

Health checks made in production to ensure you can sleep well at night and be sure everything is still OK.

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

[](#installation)

You can install the package via composer:

```
composer require backstage/laravel-ok
```

You can then install the package by using the `ok:install` Artisan command:

```
php artisan ok:install
```

This is the contents of the published config file:

```
return [
    'notifications' => [
        'enabled' => env('LARAVEL_OK_NOTIFICATIONS_ENABLED', true),

        'failed_notification' => CheckFailedNotification::class,

        'notifiable' => Notifiable::class,

        'via' => [
            // 'discord' => [
            //     'channel' => 123456790,
            // ],
            // 'mail' => [
            //     'to' => 'text@example.com',
            // ],
            // 'slack' => [
            //     'webhook' => 'webhook-url',
            // ],
            // 'telegram' => [
            //     'channel' => 1234567890,
            // ],
        ],
    ],

    'checks' => [
        'audit' => [
            'path' => [
                // '~/some/bin',
            ],
        ],
    ],
];
```

Usage
-----

[](#usage)

To register checks for your application, you need to register them in the `checks` array in your `AppServiceProvider` register method.

```
use Backstage\Laravel\OK\Facades\OK;

class AppServiceProvider extends ServiceProvider
{
    // ...

    public function register()
    {
        OK::checks([
            EnvironmentCheck::shouldBe('production'),
            DebugModeCheck::shouldBe('false'),
        ]);
    }
}
```

You can now run the checks using the `ok:check` Artisan command:

```
php artisan ok:check
```

Available checks
----------------

[](#available-checks)

- **Cache Check**: Check whether reading and writing to the cache is possible.
- **Composer Outdated Check**: Checks whether there are outdated packages in your project and informs you of the findings.
- **Composer Audit Check**: Checks whether there are any security vulnerabilities in your composer dependencies.
- **CPU Load Check**: Checks whether the total CPU load is above a certain percentage on a short, mid and long term.
- **Config Cache Check**: Checks whether the config is cached.
- **Database Check**: Checks whether a connection can be established on the configured connection.
- **Database Connection Count Check**: Checks whether the database's connection count exceeds a configurable limit.
- **Database Size Check**: Checks whether the database's data exceeds a configurable size limit.
- **Database Table Size Check**: Does the same as the Database Size Check but for a specific table.
- **Debug Mode Check**: Checks whether debug mode is enabled.
- **Directory Check**: Checks whether the configured directories exist.
- **Disk Space Check**: Checks whether the disk space is below a certain threshold.
- **DotEnv Check**: Checks whether the configured environment variables are accessible in the application.
- **Environment Check**: Checks whether the current environment matches the configured environment type.
- **Event Cache Check**: Checks whether events are cached.
- **Extension Check**: Checks whether the configured PHP extensions are loaded.
- **File Check**: Does the same as the Directory Check but for files.
- **Horizon Check**: Checks whether Horizon is running.
- **Memory Usage Check**: Checks whether the total memory usage exceeds a configurable limit in the form of a percentage.
- **NPM Audit Check**: Checks whether there are any security vulnerabilities in your npm dependencies.
- **NPM Installed Package Check**: Checks whether a certain npm package is installed.
- **OPCache Check**: Checks whether OP cache and optionally the JIT compiler are configured and running.
- **Permission Check**: Checks whether the configured filesystem items have the correct permissions for the current user.
- **Ping check**: Checks whether the application can ping the specified address, if the address is not specified it defaults to `www.google.com`.
- **Process Count Check**: Checks whether the configured programs are exceeding the configured process count.
- **Queue Check**: Checks whether the queue is running.
- **Reboot Check**: Checks whether the server has rebooted recently.
- **Redis Check**: Checks whether the application can connect to the configured redis connections.
- **Redis Memory Usage Check**: Checks whether the Redis instance is exceeding a configured amount of memory usage.
- **Route Cache Check**: Checks whether routes are cached.
- **Scheduler Check**: Checks whether the scheduler has is still online and running jobs.
- **Storage Check**: Checks whether the configured disks can be written to and read from.
- **UptimeCheck**: Checks whether the server's uptime exceeds a configured maximum.

Inspired by
-----------

[](#inspired-by)

This package is inspired by [Laravel Health](https://github.com/spatie/laravel-health).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Mark van Eijk](https://github.com/markvaneijk)
- [Bas van Dinther](https://github.com/baspa)
- [David den Haan](https://github.com/daviddenhaan)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

[](#the-mit-license-mit-please-see-license-file-for-more-information)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/7c6a425dc8645907a118a007438172d58c2016773f54ab3a834beff172632f13?d=identicon)[ux](/maintainers/ux)

---

Top Contributors

[![david-d-h](https://avatars.githubusercontent.com/u/75451291?v=4)](https://github.com/david-d-h "david-d-h (117 commits)")[![markvaneijk](https://avatars.githubusercontent.com/u/1925388?v=4)](https://github.com/markvaneijk "markvaneijk (103 commits)")[![Baspa](https://avatars.githubusercontent.com/u/10845460?v=4)](https://github.com/Baspa "Baspa (69 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![Casmo](https://avatars.githubusercontent.com/u/385764?v=4)](https://github.com/Casmo "Casmo (1 commits)")

---

Tags

checkercheckshealthlaravelmonitorphpserverstatus

### Embed Badge

![Health badge](/badges/vormkracht10-laravel-ok/health.svg)

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

###  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)
