2017 © Pedro Peláez
 

package maintenance-screen

Manages a maintenance screen

image

luar/maintenance-screen

Manages a maintenance screen

  • Wednesday, January 17, 2018
  • by laarranz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

MaintenanceScreen

version code-size code license packagist downloads, (*1)

This package allows you to enable a maintenance screen for your website., (*2)

Installation

composer require luar/maintenance-screen

Usage

To use it in your project simply include the following in the index.php of the website:, (*3)

use Luar\MaintenanceScreen;

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

$maintenance->load();

Documentation

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

'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

The Versions

17/01 2018

dev-master

9999999-dev

Manages a maintenance screen

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Luis Angel Arranz Peinado

08/07 2017

v1.0.0

1.0.0.0

Manages a maintenance screen

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Luis Angel Arranz Peinado