stefanorg / jhttps
Zf2 module to force https route
dev-master
2015-06-11 07:48 UTC
Requires
- php: >=5.3
- zendframework/zend-eventmanager: 2.*
- zendframework/zend-loader: 2.*
- zendframework/zend-modulemanager: 2.*
- zendframework/zend-mvc: 2.*
Requires (Dev)
- robertboloc/zf2-components-list-generator: dev-master
This package is not auto-updated.
Last update: 2026-02-24 12:18:24 UTC
README
This module allow you to force zf2 routing to https scheme for some route you decide.
You can find italian instructions here
Installation
- download with composer
php composer.phar require stefanorg/jhttps:dev-master - enable it in your application.config.php
- copy file
vendor/stefanorg/jhttps/config/jhttps.config.global.php.disttoconfig/autoload/jhttps.config.global.phpand edit as you wish
Options
- force_http_for_non_https_route: true if you want to redirect navigation to normal http if the requested route is not forced to be https
Example
If you want to enable https for route zfcuser/login (you have the zfc-user module installed didn't you?!?) modify jhttps.config.global.php like this:
/**
* If you want reset to http scheme for non https route
*/
'force_http_for_non_https_route' => true,
'routes' => array(
//enable https for user login page
'zfcuser/login'
)