Download the PHP package ennacx/cake-middlewares without Composer
On this page you can find all versions of the php package ennacx/cake-middlewares. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ennacx/cake-middlewares
More information about ennacx/cake-middlewares
Files in ennacx/cake-middlewares
Download ennacx/cake-middlewares
More information about ennacx/cake-middlewares
Files in ennacx/cake-middlewares
Vendor ennacx
Package cake-middlewares
Short Description Middlewares for CakePHP
License MIT
Homepage https://github.com/ennacx/cake-middlewares
Package cake-middlewares
Short Description Middlewares for CakePHP
License MIT
Homepage https://github.com/ennacx/cake-middlewares
Please rate this library. Is it a good library?
Informations about the package cake-middlewares
CakePHP Middlewares
Requires
- PHP 8.1 or later
- composer 2.0 or later
Install
You can install this plugin into your CakePHP application using composer.
Usage
Maintenance middleware
Installation
Recommended to insert it next to RoutingMiddleware.
Options
- thru_ip_list ()
- Specify the IP addresses, including the mask length, that can be skipped during maintenance and used to run normal applications.
- check_method ()
- Specify either enum.
- If you select , the maintenance state will not work.
- check_file_path ()
- This is a required parameter when you specify to , and specifies the full path of the file. The existence of this file is checked to determine whether the system is in maintenance mode.
- is_maintenance ()
- This is a required parameter when you specify to . This boolean value is used to determine whether the device is under maintenance.
- check_date_from ( or )
- This is a required parameter when you specify to . The system will be in maintenance mode from this date(time) onwards.
- If specified, the maintenance state will continue until the date(time) specified in .
- The format of this date(time) will be determined in below.
- check_date_to ( or )
- This is a required parameter when you specify to . The system will be under maintenance until this date(time).
- If specified, the maintenance state will continue from the date(time) specified in .
- The format of this date(time) will be determined in below.
- check_date_format ()
- Specifies the format of the date(time) described in and .
- maintenance_message ( or )
- Specify the message to be passed to the CakePHP Exception argument if there is one. If not, leave it unspecified or specify .
- use_proxy ()
- This is necessary to determine whether to obtain the IP from , in order to obtain the IP from the method of the object and determine whether it is an IP to be passed through.
Utility
If you specify as , you can use this switcher to easily switch the maintenance state, for example, by batch or command.
License
All versions of cake-middlewares with dependencies
PHP Build Version
Package Version
The package ennacx/cake-middlewares contains the following files
Loading the files please wait ...