2017 © Pedro Peláez
 

yii2-extension yii2-devlogin

A package to password-protect an entire site, typically when in dev or test mode

image

mipotech/yii2-devlogin

A package to password-protect an entire site, typically when in dev or test mode

  • Wednesday, May 9, 2018
  • by mipotech
  • Repository
  • 2 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 150 % Grown

The README.md

Yii2-devlogin

This package provides a simple way to password-protect an entire site, typically when in dev or test mode., (*1)

Installation

The preferred way to install this extension is through composer. Either run, (*2)

php composer.phar require --prefer-dist mipotech/yii2-devlogin "*"

or add:, (*3)

"mipotech/yii2-devlogin": "*",

to the require section of your composer.json file and perform a composer update., (*4)

Configuration

Add devlogin as an application component in @app/config/web.php:, (*5)

'components' => [
    ...
    'devlogin' => [
        /* Required settings */
        'class' => 'mipotech\devlogin\Bootstrap',
        'username' => 'XXXXX',
        'password' => 'YYYYY',

        /* Optional settings */
        'environments' => ['dev'],    // defaults to ['dev', 'test']
        'excludeIPs' => ['192.168.10.1'],    // IP addresses to exclude from this rule. defaults to []
        'excludePaths' => ['/dashboard','/gii'],    // defaults to []
        'logoPath' => '/images/logo.png',
    ],
    ...
]

and then add the devlogin component in the bootstrap section of the config file:, (*6)

'bootstrap' => [
    'log',
    'devlogin',
    ...
]

That's it. The package is set up and ready to go., (*7)

The Versions

09/05 2018

dev-master

9999999-dev

A package to password-protect an entire site, typically when in dev or test mode

  Sources   Download

MIT

The Requires

 

by Chaim Leichman, MIPO Technologies Ltd

extension yii2 dev

06/04 2017

1.0

1.0.0.0

A package to password-protect an entire site, typically when in dev or test mode

  Sources   Download

MIT

The Requires

 

by Chaim Leichman, MIPO Technologies Ltd

extension yii2 dev