PHPackages                             luar/maintenance-screen - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. luar/maintenance-screen

ActivePackage[Utility &amp; Helpers](/categories/utility)

luar/maintenance-screen
=======================

Manages a maintenance screen

v1.1.1(3mo ago)1321MITPHPPHP &gt;=5.6CI failing

Since Oct 8Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/laarranz/maintenance-screen)[ Packagist](https://packagist.org/packages/luar/maintenance-screen)[ RSS](/packages/luar-maintenance-screen/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

MaintenanceScreen
=================

[](#maintenancescreen)

[![version](https://camo.githubusercontent.com/04527e97235ca389ddfa22a444d4f8e9458201ffbfdddcfb0a80811a00cf7d72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)](https://camo.githubusercontent.com/04527e97235ca389ddfa22a444d4f8e9458201ffbfdddcfb0a80811a00cf7d72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)[![code-size](https://camo.githubusercontent.com/93b5a924370a0ffb625d95aee7d59daa56067e7b9cb2314cee130334277bfd91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)](https://camo.githubusercontent.com/93b5a924370a0ffb625d95aee7d59daa56067e7b9cb2314cee130334277bfd91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)[![code](https://camo.githubusercontent.com/abd244b9c546abf33dc4693b1fa52ec3359af397ee30e2f281b555c98f11516f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)](https://camo.githubusercontent.com/abd244b9c546abf33dc4693b1fa52ec3359af397ee30e2f281b555c98f11516f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)[![license](https://camo.githubusercontent.com/8732687b639d91a71a385a04d13fadb6308dfc1ec18d124d33e5df5f60441985/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)](https://camo.githubusercontent.com/8732687b639d91a71a385a04d13fadb6308dfc1ec18d124d33e5df5f60441985/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c61617272616e7a2f6d61696e74656e616e63652d73637265656e)[![packagist downloads](https://camo.githubusercontent.com/9b44bdafc9dd6ca0f75f4361c0ef21e8fb669403f0779cf799409353ba424729/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c7561722f6d61696e74656e616e63652d73637265656e)](https://camo.githubusercontent.com/9b44bdafc9dd6ca0f75f4361c0ef21e8fb669403f0779cf799409353ba424729/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c7561722f6d61696e74656e616e63652d73637265656e)

This package allows you to enable a maintenance screen for your website.

- [Installation](#installation)
- [Usage](#usage)
- [Documentation](#documentation)

### Installation

[](#installation)

```
composer require luar/maintenance-screen
```

### Usage

[](#usage)

To use it in your project simply include the following in the index.php of the website:

```
use Luar\MaintenanceScreen;

$maintenance = new MaintenanceScreen(array(
	'enable' => true,
	'visible_hosts' => array()
));

$maintenance->load();
```

### Documentation

[](#documentation)

The following options can be sent to load() in an associative array.

```
'enable' => false, // enable or disable the screen

// ip addresses that can continue to see the web even though it is active
'visible_hosts' => array (
    'localhost',
    '192.168.1.33'
),

// optionals
'flag' => 'maintenance.flag', // Activated or deactivated based on the existence of file
'img_path' => 'maintenance.jpg', // Show the indicated image
'title' => 'Maintenance title', // Show the title written
'text' => 'This site is in testing.', // Shows the indicated text
'css_path' => 'style.css', // Includes custom style sheet
'bgcolor' => 'black' // Modifies the background of the screen
'language' => 'ES' // To change the default language to Spanish
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance80

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~2305 days

Total

2

Last Release

105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/707035f6b8cd048670b2c7509eaeca01fe7fadeb24ae3d01b4c981e7d4cb082b?d=identicon)[laarranz](/maintainers/laarranz)

---

Top Contributors

[![laarranz](https://avatars.githubusercontent.com/u/4221875?v=4)](https://github.com/laarranz "laarranz (6 commits)")

---

Tags

maintenancephpscreen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luar-maintenance-screen/health.svg)

```
[![Health](https://phpackages.com/badges/luar-maintenance-screen/health.svg)](https://phpackages.com/packages/luar-maintenance-screen)
```

###  Alternatives

[mirzabusatlic/laravel-schedule-monitor

Monitor the output of scheduled tasks in a database table

2869.8k](/packages/mirzabusatlic-laravel-schedule-monitor)

PHPackages © 2026

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