PHPackages                             bhhaskin/laravel-status - 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. [API Development](/categories/api)
4. /
5. bhhaskin/laravel-status

ActiveLibrary[API Development](/categories/api)

bhhaskin/laravel-status
=======================

Health check API endpoint for Laravel applications.

0.1.1(6mo ago)025MITPHPPHP ^8.1CI passing

Since Nov 6Pushed 6mo agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Laravel Status
==============

[](#laravel-status)

[![Tests](https://github.com/bhhaskin/laravel-status/workflows/Tests/badge.svg)](https://github.com/bhhaskin/laravel-status/actions)

A simple Laravel package that provides a health check API endpoint for monitoring your application's status.

Features
--------

[](#features)

- Simple `/health` endpoint that returns JSON status
- Database connectivity check
- Cache connectivity check
- Returns HTTP 200 for healthy, 503 for unhealthy
- Configurable endpoint path and checks
- Auto-discovery for Laravel

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

[](#installation)

Install via Composer:

```
composer require bhhaskin/laravel-status
```

The package will automatically register itself via Laravel's package auto-discovery.

Usage
-----

[](#usage)

Once installed, the package automatically registers a `/health` endpoint that returns:

**Healthy Response (200):**

```
{
  "status": "ok"
}
```

**Unhealthy Response (503):**

```
{
  "status": "error"
}
```

Simply make a GET request to `/health` to check your application's status.

Configuration
-------------

[](#configuration)

Publish the configuration file (optional):

```
php artisan vendor:publish --tag=laravel-status-config
```

This creates `config/status.php` with the following options:

```
return [
    // Enable or disable the status check endpoint
    'enabled' => env('STATUS_CHECK_ENABLED', true),

    // The path for the status check endpoint
    'path' => env('STATUS_CHECK_PATH', 'health'),

    // Middleware to apply to the status check endpoint
    'middleware' => [],

    // Configure which health checks to run
    'checks' => [
        'database' => env('STATUS_CHECK_DATABASE', true),
        'cache' => env('STATUS_CHECK_CACHE', true),
    ],
];
```

### Environment Variables

[](#environment-variables)

You can configure the package using environment variables:

```
STATUS_CHECK_ENABLED=true
STATUS_CHECK_PATH=health
STATUS_CHECK_DATABASE=true
STATUS_CHECK_CACHE=true
```

Testing
-------

[](#testing)

Run the test suite:

```
composer test
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x or 11.x

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance68

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec33fc092098e1dd582f55e8d1c82c6ebe2b472302f909f82d70235c7c665ff8?d=identicon)[bhhaskin](/maintainers/bhhaskin)

---

Top Contributors

[![bhhaskin](https://avatars.githubusercontent.com/u/4709778?v=4)](https://github.com/bhhaskin "bhhaskin (3 commits)")

---

Tags

apilaravelstatushealth check

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/bhhaskin-laravel-status/health.svg)

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

###  Alternatives

[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[vinelab/api-manager

Laravel API Manager Package - beatify and unify your responses with the least effort possible.

392.1k](/packages/vinelab-api-manager)

PHPackages © 2026

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