ozziest/maintenance

为您的应用程序提供简单的维护命令。

1.1.0 2015-01-30 08:28 UTC

This package is not auto-updated.

Last update: 2024-09-24 01:38:10 UTC


README

这个库基于 Symfony/Console。如果您正在使用 symfony/console 包来构建控制台应用程序,您也可以使用这个库。这个库包含两个命令:`down` 和 `up`。

如果您正在使用 Laravel 框架,您不需要这个库。:)

安装

要通过 composer 安装,只需在您的 composer.json 文件中添加以下内容

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

用法

您必须将命令添加到您的控制台应用程序中;

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

您必须定义可写路径。

index.php

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

许可证

MIT