stefanorg / jhttps
Zf2 module to force https route
Installs: 140
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/stefanorg/jhttps
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: 2025-10-21 10:52:48 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'
)