laravel-status-page maintained by ruvelo
Laravel Status Page
A public status page for your Laravel app: components, incidents with updates, planned maintenance and 90 days of history, managed from your own admin.
Quick start
composer require ruvelo/laravel-status-page
php artisan migrate
Say who can manage it, in a service provider's boot():
Gate::define('status-page-manage', fn ($user) => $user->is_admin);
That's it. Open /status: people see how things are, and you get a Manage button to add components, report incidents and plan maintenance. Want the status in your footer too?
<x-status-page::badge />
What you get
- A public page at
/status: an overall banner, your components (grouped) with their current status, open incidents with their timeline, maintenance in progress or coming up, and the last week's incidents. - 90 days of daily bars per component, with uptime, worked out from your incidents.
- An archive of past incidents, and a page per incident and per maintenance window.
- Manage screens behind a gate: components, incidents (open, post updates, resolve, choose affected components and how), and maintenance that moves from scheduled to in progress to completed on its own.
- Atom and RSS feeds, and a read-only
/status.jsonfor embedding on other sites. <x-status-page::badge />: "All systems operational" and a dot, for your footer.- In English, French, Spanish and German.
- Fast and accessible: no JavaScript, no build step, light and dark mode, a handful of queries per page.
Optional features
All three are off by default.
HTTP checks
Give a component a URL and the package requests it every minute. After three failures in a row it opens an incident; when the URL answers again, it resolves it. Set STATUS_PAGE_CHECKS=true and make sure Laravel's scheduler runs. Details.
Email updates
A "Get updates by email" form on the page. People confirm their address, then hear about new incidents, their updates and planned maintenance, with an unsubscribe link in every email. Set STATUS_PAGE_SUBSCRIPTIONS=true. Details.
Webhooks
Your own URLs (Slack, Discord, your chat ops) get a JSON POST for the same events. Set STATUS_PAGE_WEBHOOKS=https://hooks.example.com/status. Details.
Using it
Components
A component is a part of your product people rely on: "API", "Dashboard", "Emails". Give components the same group to show them together ("Core", "Integrations"), and a position to order them. Hidden components can still be used in incidents; they just don't show.
Each component has its own status, which you set by hand (usually Operational). What the page shows is the worst of that status, the open incidents that affect it and maintenance in progress. So an incident marks a component down, and resolving the incident brings it back without you touching the component.
From best to worst: Operational, Under maintenance, Degraded performance, Partial outage, Major outage. The banner shows the worst of all visible components.
Incidents
Manage → Incidents → Report an incident. Give it a title, a first message, a status (Investigating, Identified or Monitoring) and pick each affected component's status. It's on the page at once.
Post updates as you go: each has a status and a message, and they build the timeline people see, newest first. An update can also change which components are affected, and how. Resolve closes the incident with a last message. You can correct an incident's title, impact or start time without adding to its timeline, and delete one entirely (rarely what you want).
Maintenance
Manage → Maintenance → Schedule maintenance. A title, details, a start and an end (in the page's timezone) and the components it touches. It shows as Scheduled until it starts, then In progress (and the components show Under maintenance), then Completed. Nothing needs to run for that: the state follows the clock. You can complete one early, or cancel it.
History
Each component gets a bar per day for the last 90 days, coloured by the worst status that day; hovering a bar names the incidents. The uptime next to it is the share of that time without a partial or major outage, with overlapping incidents counted once. Degraded performance and maintenance don't count as downtime.
Below the components, "Past incidents" lists the last 7 days; the full archive is at /status/history.
The badge
<x-status-page::badge />
<x-status-page::badge label="Status" :link="false" class="ms-auto" />
It shows the overall status as a coloured dot and a sentence, and links to the page. The overall status is cached for a minute and cleared on every change, so the badge costs nothing on busy pages.
Feeds and JSON
| URL | |
|---|---|
/status/feed.atom, /status/feed.rss |
Incidents and maintenance, newest first, with their timeline |
/status.json |
The whole page as JSON, with Access-Control-Allow-Origin: * so other sites can embed it |
{
"page": { "name": "Halyard", "url": "https://halyard.app/status", "updated_at": "2026-12-04T10:00:00+00:00" },
"status": { "indicator": "partial_outage", "description": "Some systems are down" },
"components": [
{ "id": 1, "name": "API", "description": null, "group": "Core", "status": "partial_outage", "status_label": "Partial outage" }
],
"incidents": [
{
"id": 7, "title": "Elevated API errors", "impact": "partial_outage", "state": "identified", "state_label": "Identified",
"started_at": "2026-12-04T09:30:00+00:00", "resolved_at": null, "url": "https://halyard.app/status/incidents/7",
"components": [{ "id": 1, "name": "API", "status": "partial_outage" }],
"updates": [{ "state": "identified", "body": "A bad deploy; rolling back.", "created_at": "2026-12-04T09:50:00+00:00" }]
}
],
"maintenances": [
{
"id": 3, "title": "Database upgrade", "body": "About 20 minutes.", "state": "scheduled",
"starts_at": "2026-12-05T02:00:00+00:00", "ends_at": "2026-12-05T03:00:00+00:00",
"url": "https://halyard.app/status/maintenance/3", "components": [{ "id": 1, "name": "API" }]
}
]
}
status.indicator is one of operational, maintenance, degraded, partial_outage and major_outage. Check URLs and subscribers are never in it.
HTTP checks
STATUS_PAGE_CHECKS=true
On a component's edit screen, fill in URL to check, the expected status code (200) and a timeout (5 seconds). The package schedules status-page:check every checks.every minutes, so all you need is Laravel's scheduler (* * * * * php artisan schedule:run).
- A check passes when the URL answers with the expected status code, redirects followed.
- After
checks.failuresfailures in a row (3), it opens an incident titled "API is not responding", with the component atchecks.status(Major outage). Further failures don't open another. - When the check passes again, it resolves that incident ("API is responding again."), unless you set
checks.auto_resolvetofalse. - It only ever touches incidents it opened itself (they show "Opened by a check"). An incident you opened by hand stays yours.
- The manage screen shows each check's last result and error.
php artisan status-page:check # all components with a URL
php artisan status-page:check --component=3 # just one
php artisan status-page:check --force # even with checks off
To schedule it yourself, set checks.every to null and add it to routes/console.php. These are simple up/down checks from your own server; for checks from several regions, use a monitoring service and open incidents from its webhooks with StatusPage::openIncident().
Email updates
STATUS_PAGE_SUBSCRIPTIONS=true
The page gets a "Get updates by email" form (and a Subscribe link in the header). Signing up sends a confirmation email; nothing else is sent until the address is confirmed. Confirmed subscribers get an email when an incident opens, for each update, when it's resolved, and when maintenance is scheduled, in the language they signed up in. Every email has an unsubscribe link.
- Confirm and unsubscribe links are signed, and open a page with a button, so a mail scanner opening them changes nothing.
- The form is rate limited (
subscriptions.rate_limita minute per IP) and has a honeypot field. - Update emails are queued: run a queue worker (or use the
syncqueue). The confirmation email is sent straight away. - Manage → Subscribers lists them, and lets you remove one.
It's deliberately simple: one list, everything or nothing. There are no per-component subscriptions, SMS or Slack apps.
Webhooks
STATUS_PAGE_WEBHOOKS=https://hooks.example.com/status,https://other.example.com/hook
Each URL gets a JSON POST for incident.created, incident.updated, incident.resolved and maintenance.scheduled, queued and retried three times:
{
"event": "incident.created",
"page": { "name": "Halyard", "url": "https://halyard.app/status" },
"incident": { "id": 7, "title": "Elevated API errors", "…": "the same shape as in /status.json" }
}
Maintenance events carry maintenance instead of incident. Webhooks don't need subscriptions to be on.
Who sees what
The page, the history, the feeds and the JSON are public. Everything under /status/manage needs the status-page-manage gate, which lets nobody in until you define it. Guests are sent to your login route, or get a 403 in an app that doesn't have one. To make the page itself private, add auth to middleware.
Making it look like your app
The colours are CSS variables, scoped to the page and the badge, using the Ruvelo house style. Override any of them in your own CSS:
.sp, .status-badge { --status-accent: #0e7c66; --status-accent-soft: #e6f5f1; }
Light and dark follow each person's system setting, or your app's data-theme="dark" / .dark.
To put the pages inside your app's chrome, point layout at your layout. The pages fill the section you name and push their <head> tags to a status-page-head stack if your layout has one:
'layout' => 'layouts.app',
'section' => 'content',
For full control, publish the views (--tag=status-page-views) or the translations (--tag=status-page-translations).
For developers
PHP API
Every change goes through Ruvelo\StatusPage\StatusPage, which fires the events, sends emails and webhooks, and clears the cached overall status:
use Ruvelo\StatusPage\StatusPage;
$api = StatusPage::saveComponent(['name' => 'API', 'group' => 'Core', 'check_url' => 'https://api.example.com/up']);
StatusPage::saveComponent(['description' => 'Public REST API'], $api); // change one
StatusPage::setStatus($api, 'degraded');
StatusPage::deleteComponent($api);
$incident = StatusPage::openIncident(
'Elevated API errors',
'We are looking into it.',
impact: 'partial_outage', // degraded, partial_outage or major_outage
components: [$api->id => 'partial_outage'], // or [$api, $web] to use the impact
state: 'investigating', // or identified, monitoring
startedAt: now()->subMinutes(10),
);
StatusPage::postUpdate($incident, 'A bad deploy; rolling back.', 'identified');
StatusPage::postUpdate($incident, 'Fixed, watching.', 'monitoring', [$api->id => 'degraded']);
StatusPage::resolve($incident, 'All good.');
StatusPage::editIncident($incident, ['title' => 'API errors after a deploy']);
StatusPage::deleteIncident($incident);
$window = StatusPage::scheduleMaintenance('Database upgrade', 'About 20 minutes.', $start, $end, [$api]);
StatusPage::updateMaintenance($window, ['ends_at' => $end->addHour()]);
StatusPage::completeMaintenance($window); // ends it now
StatusPage::cancelMaintenance($window);
StatusPage::overall(); // ComponentStatus, cached for cache_seconds
StatusPage::statusOf($api); // what the page shows for it
StatusPage::statuses(); // [component id => ComponentStatus]
StatusPage::components(); // visible ones, each with current_status
StatusPage::activeIncidents();
StatusPage::upcomingMaintenance();
StatusPage::history(30); // History: days, from, components (ComponentHistory: days, uptime)
StatusPage::subscribe('ada@example.com'); // sends the confirmation email
StatusPage::confirm($subscriber);
StatusPage::unsubscribe($subscriber);
ComponentStatus, IncidentState and MaintenanceState are backed enums in Ruvelo\StatusPage\Enums, with label() (translated); ComponentStatus also has severity(), tone(), headline() and worst(...). Methods take an enum or its value.
Events
| Event | When |
|---|---|
ComponentSaved |
A component was created (created is true) or changed |
ComponentDeleted |
A component was deleted |
IncidentCreated |
An incident was opened; has incident and its first update |
IncidentUpdated |
An update was posted, the resolving one included |
IncidentResolved |
An incident was resolved, after IncidentUpdated |
IncidentEdited |
Title, impact or start time corrected |
IncidentDeleted |
An incident was deleted |
MaintenanceScheduled |
A window was planned |
MaintenanceUpdated |
A window was changed, completed early or cancelled |
MaintenanceDeleted |
A window was deleted |
SubscriberConfirmed, Unsubscribed |
Email subscriptions |
CheckFailed |
A check failed; has component, error and failures in a row |
CheckRecovered |
A failing check passed again |
All in Ruvelo\StatusPage\Events.
Exceptions
InvalidStatus (a status, impact or state that doesn't exist, or a new incident that's already resolved), InvalidSchedule (a window that ends before it starts) and IncidentAlreadyResolved, all extending Ruvelo\StatusPage\Exceptions\StatusPageException.
Web routes
GET /status |
The page |
GET /status/history |
Past incidents, 20 at a time |
GET /status/incidents/{id}, GET /status/maintenance/{id} |
One incident or window |
GET /status/feed.atom, /status/feed.rss, /status.json |
Feeds and JSON |
POST /status/subscribe |
Email sign-up (404 while subscriptions are off) |
/status/manage/… |
The manage screens |
All named status-page.*.
In your tests
use Ruvelo\StatusPage\Enums\ComponentStatus;
use Ruvelo\StatusPage\Models\Component;
use Ruvelo\StatusPage\Models\Incident;
use Ruvelo\StatusPage\Models\Maintenance;
$api = Component::factory()->inGroup('Core')->create(['name' => 'API']);
Component::factory()->checking('https://api.example.com/up')->create();
Incident::factory()->impact(ComponentStatus::MajorOutage)->affecting($api)->withUpdate('Down.')->create();
Incident::factory()->resolved()->startedAt(now()->subDays(3))->create();
Maintenance::factory()->inProgress()->affecting($api)->create();
The factories write straight to the database, so call StatusPage::flush() before asserting on StatusPage::overall().
Using an AI coding agent?
The package ships Laravel Boost guidelines in resources/boost/guidelines/core.blade.php. With Boost installed (composer require laravel/boost --dev), run php artisan boost:install and pick ruvelo/laravel-status-page from the third-party packages (or php artisan boost:update --discover if Boost is already set up). Your agent then knows how to define the gate, add the badge, open and resolve incidents from code, and what not to do.
Requirements
| Laravel | PHP | Tested in CI |
|---|---|---|
| 12 (12.4.1+) | 8.3, 8.4, 8.5 | yes |
| 13 | 8.3, 8.4, 8.5 | yes |
- Optional, for HTTP checks: Laravel's scheduler (
* * * * * php artisan schedule:run) - Optional, for email updates: a working mailer and a queue worker
- Optional, for webhooks: a queue worker (or the
syncqueue)
Configuration reference
Publish the config file if you want to change the defaults:
php artisan vendor:publish --tag=status-page-config
| Key | Default | |
|---|---|---|
name |
APP_NAME (STATUS_PAGE_NAME) |
Shown in the header, titles, feeds and emails |
path |
status (STATUS_PAGE_PATH) |
Where the page lives; the JSON is at /{path}.json |
domain |
null (STATUS_PAGE_DOMAIN) |
Serve it on its own (sub)domain, e.g. status.example.com with path / |
middleware |
['web'] |
Applied to every route; add auth to make the page private |
manage_middleware |
[] |
Added to the manage screens, on top of the gate |
routes |
true |
Set to false to register routes yourself (copy routes/web.php) |
layout |
null |
Your layout view for the pages; null uses the package's own |
section |
content |
The section of your layout the pages fill |
app.label, app.url |
null |
A link back to your product in the header |
history_days |
90 |
Days of bars per component |
recent_days |
7 |
Days of "Past incidents" on the main page |
per_page |
20 |
Incidents per page in the archive |
feed |
20 |
Items in the Atom and RSS feeds |
timezone |
your app's | The timezone dates are shown in, days are cut in, and manage forms are read in |
json.enabled |
true (STATUS_PAGE_JSON) |
/status.json |
json.cors |
* |
Its Access-Control-Allow-Origin; null to send none |
cache_seconds |
60 |
How long the overall status is cached; cleared on every change, 0 turns it off |
checks.enabled |
false (STATUS_PAGE_CHECKS) |
Run HTTP checks |
checks.every |
1 |
Minutes between runs the package schedules; null to schedule it yourself |
checks.failures |
3 |
Failures in a row before an incident opens |
checks.auto_resolve |
true |
Resolve it when the check passes again |
checks.status |
major_outage |
The component's status in that incident |
checks.user_agent |
StatusPageCheck/1.0 |
Sent with checks and webhooks |
subscriptions.enabled |
false (STATUS_PAGE_SUBSCRIPTIONS) |
Email updates |
subscriptions.rate_limit |
5 |
Sign-ups a minute per IP |
webhooks |
[] (STATUS_PAGE_WEBHOOKS, comma-separated) |
URLs that get a JSON POST for each event |
table_prefix |
status_ |
The package's tables: {prefix}components, {prefix}incidents, {prefix}incident_updates, {prefix}incident_component, {prefix}maintenances, {prefix}maintenance_component and {prefix}subscribers |
run_migrations |
true |
Set to false if you publish the migrations and run them yourself (--tag=status-page-migrations) |
Upgrading
This is the first release; there is nothing to upgrade from yet. Notes for future versions will be here, newest first.
Contributing
Pull requests are welcome. Clone, composer install, then composer check runs code style (Pint), static analysis (PHPStan level 8) and the tests, exactly as CI does. See CONTRIBUTING.md and the changelog.
Credits
Built by François Bultez at Valtry, the website security scanner, and everyone who contributes.
License
MIT. See LICENSE.