ozziest/maintenance

Simple maintenance commands for your applications.

1.1.0 2015-01-30 08:28 UTC

This package is not auto-updated.

Last update: 2024-11-05 02:07:59 UTC


README

This library based on Symfony/Console. If you are using symfony/console package for your console application, you can use this too. The library has two commands which are down and up.

If you are using Laravel Framework, you don't need this. :)

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "ozziest/maintenance": "1.*",
    }
}

Usage

You must add commands to your console application;

$console->add(new Ozziest\Maintenance\Up('app/cache'));
$console->add(new Ozziest\Maintenance\Down('app/cache'));

You must define writable path.

index.php

Ozziest\Maintenance\Maintenance::check('app/cache', 'This is a maintenance message.');

License

MIT