ozziest / maintenance
Simple maintenance commands for your applications.
Installs: 78
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
pkg:composer/ozziest/maintenance
Requires
- php: >=5.4.0
- symfony/console: 2.*
This package is not auto-updated.
Last update: 2025-02-11 03:39:09 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