承接 thomaswardiii/slim-maintenance-middleware 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thomaswardiii/slim-maintenance-middleware

最新稳定版本:v1.1

Composer 安装命令:

composer require thomaswardiii/slim-maintenance-middleware

包简介

Maintenance middleware for the Slim 3 framework

README 文档

README

This repository contains an optional middleware for your Slim 3 Framework application.

The middleware will return a default maitenance page with a 503 status code when the application is in maintenance mode.

How to install

Update your composer.json manifest to require the thomaswardiii/slim-maintenance-middleware package (see below). Run composer install or composer update to update your local vendor folder.

{
    "require": {
        "thomaswardiii/slim-maintenance-middleware": "*"
    }
}

How to use

Add the maintenance middleware to your Slim 3 applicaiton:

<?php
$app->add(new \Twardiii\Middleware\Maintenance());

You can also pass a callable function that will be called when maintenance mode is enabled:

<?php
$app->add(new \Twardiii\Middleware\Maintenance(function($request, &response) {
    ...
}));

To enable the maintenance mode just set the $_ENV variable:

<?php
$_ENV['SLIM_MODE'] = 'maintenance';

License

All code in this repository is released under the MIT public license.

http://opensource.org/licenses/MIT

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固