PHPackages                             atournayre/maintenance-bundle - 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. [Framework](/categories/framework)
4. /
5. atournayre/maintenance-bundle

AbandonedSymfony-bundle[Framework](/categories/framework)

atournayre/maintenance-bundle
=============================

Maintenance bundle for Symfony 4

02PHPCI failing

Since Mar 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/atournayre/maintenance-bundle)[ Packagist](https://packagist.org/packages/atournayre/maintenance-bundle)[ RSS](/packages/atournayre-maintenance-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Maintenance bundle
==================

[](#maintenance-bundle)

[![Build Status](https://camo.githubusercontent.com/733cf9062160853c77c3f048c1eebcf25da7b92695654c1b48bc91d9d07c9c67/68747470733a2f2f7472617669732d63692e636f6d2f61746f75726e617972652f6d61696e74656e616e63652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/atournayre/maintenance-bundle)

The maintenance bundle helps managing software maintenance.

---

What this bundle for ?
----------------------

[](#what-this-bundle-for-)

Use this bundle to enable/disable maintenance and manage options.

Getting Started
---------------

[](#getting-started)

```
$ composer require atournayre/maintenance-bundle

```

Configuring
-----------

[](#configuring)

Enable the bundle

```
# config/bundles.php
return [
    // ...
    Atournayre\MaintenanceBundle\AtournayreMaintenanceBundle::class => ['all' => true],
    // ...
];
```

Configure .env

```
# .env / .env.local.php
return array (
  // ...
  // MAINTENANCE_IS_ENABLED : true / false
  'MAINTENANCE_IS_ENABLED' => true,
  // MAINTENANCE_START_DATETIME : "2021-03-25 00:00:00" / "2021-03-25"
  'MAINTENANCE_START_DATETIME' => "2021-03-25 00:00:00",
  // MAINTENANCE_AUTHORIZED_IPS : "localhost,127.0.0.1"
  'MAINTENANCE_AUTHORIZED_IPS' => "localhost",
  // ...
);
```

Add configuration to services.yaml

```
# config/services.yaml
parameters:
  atournayre_maintenance.is_enabled: '%env(MAINTENANCE_IS_ENABLED)%'
  atournayre_maintenance.start_date_time: '%env(MAINTENANCE_START_DATETIME)%'
  atournayre_maintenance.authorized_ips: '%env(MAINTENANCE_AUTHORIZED_IPS)%'
```

Overriding templates
--------------------

[](#overriding-templates)

Using Symfony 4.4.\* ?

```
$ mkdir -p templates/bundles/AtournayreMaintenanceBundle
$ cp -r vendor/atournayre/maintenance-bundle/Resources/views/. templates/bundles/AtournayreMaintenanceBundle

```

Templates are now ready for customization!

Usage
-----

[](#usage)

### Schedule maintenance

[](#schedule-maintenance)

Use command below to add maintenance in the future.

```
$ php bin/console maintenance --start="2021-01-01 12:00:00"

```

### Enable

[](#enable)

Use command below to enable maintenance.

```
$ php bin/console maintenance --enable

```

### Disable

[](#disable)

Use command below to disable maintenance.

```
$ php bin/console maintenance --disable

```

### Add authorized IP

[](#add-authorized-ip)

If you want your application to be under maintenance except for specific IPs, use command below.

Works for IPv4 and IPv6.

```
$ php bin/console maintenance --add-ip="127.0.0.1"

```

### Clean IPs

[](#clean-ips)

Use command below to reset authorized IPs.

```
$ php bin/console maintenance --clean-ips

```

### Dump IPs

[](#dump-ips)

Don't remember which IPs are authorized ?

Use command below to dump authorized IPs.

```
$ php bin/console maintenance --dump-ips

```

### Debug

[](#debug)

Use command below to view maintenance configuration.

```
$ php bin/console maintenance --debug

```

### Multiple

[](#multiple)

You can use multiple instructions at once.

```
$ php bin/console maintenance --enable --clean-ips --add-ip="127.0.0.1"

```

In this example, maintenance will be enabled, old authorized IPs will be reset and a new one will be added.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

### Community

Maintainers

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

---

Top Contributors

[![atournayre](https://avatars.githubusercontent.com/u/4262077?v=4)](https://github.com/atournayre "atournayre (18 commits)")

---

Tags

maintenance

### Embed Badge

![Health badge](/badges/atournayre-maintenance-bundle/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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