PHPackages                             tbi/yii2-login - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tbi/yii2-login

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

tbi/yii2-login
==============

Register ,role,country,city,state modelgeneration

026CSS

Since Sep 15Pushed 6y agoCompare

[ Source](https://github.com/brstdev35/TBI)[ Packagist](https://packagist.org/packages/tbi/yii2-login)[ RSS](/packages/tbi-yii2-login/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

\#Register module for Yii 2.0 Framework advanced template

Installation
------------

[](#installation)

Before installing this Module ,please install admin lte through composer

Either run:

```
composer require dmstr/yii2-adminlte-asset "2.*"
```

or add

```
"dmstr/yii2-adminlte-asset": "2.*",
```

to the require section of your `composer.json` file.

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run:

```
composer require tbi/yii2-login
```

or add

```
"tbi/yii2-login": "*"
```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

1.add link to RegisterModule in your config

```
return [
    'modules' => [
        'login' => [
            'class' => 'TBI\Login\Login',
        ],
    ],
];
```

```
To Generate Table in database

/login/register/generate-table

To add user
/login/register/create

Update User
/login/register/update?id=

User listing
/login/register/index

Country Listing
/login/country/index

State Listing
/login/state/index

City Listing
/login/city/index

Role Listing
/login/role/index
```

```
API Lists

User Information API's

    /login/api/register(firstname,lastname,email,password)

    /login/api/user-infobystatus?id=

    /login/api/user-infobyrole?id=

    /login/api/user-info?id=

    /login/api/list

    /login/api/delete?id=

Role API's

    /login/api/add-role(role)

   /login/api/update-role?id=

    /login/api/role-list

    /login/api/delete-role?id=

Country API's

    /login/api/add-country(countryname)

    /login/api/update-country?id=

    /login/api/country-list

    /login/api/delete-country?id=

State API's

    /login/api/add-state(countryname,statename)

    /login/api/update-state?id=

    /login/api/state-list

    /login/api/delete-state?id=

    /login/api/state-listbycountry?id=

City API's

    /login/api/add-city(countryname,statename,cityname)

    /login/api/update-city?id=

    /login/api/city-list

    /login/api/delete-city?id=

    /login/api/city-listbycountry?id=
```

```
Login API's

    for login API ,user need to change table name to 'register_user'.

    and Replace the user Model
