2017 © Pedro Peláez
 

library jhttps

Zf2 module to force https route

image

stefanorg/jhttps

Zf2 module to force https route

  • Thursday, June 11, 2015
  • by stefanorg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 123 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JHttps

This module allow you to force zf2 routing to https scheme for some route you decide., (*1)

You can find italian instructions here, (*2)

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.dist to config/autoload/jhttps.config.global.php and 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:, (*3)

    /**
     * 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'
    )

The Versions