/php-mvc-yii-database-login

Easy way to make a login through user and password on database

Primary LanguagePHPMIT LicenseMIT

PHP MVC application build using Yii2 framework and bootstrap 3.

Easy way to make a login through user and password on database and store authkey on cookies

Prerequisites

  • MySQL Server
  • Yii framework
  • PHP
  • Composer

Getting Started

  1. Run load_db.sql on your database to create and insert user for login.
  2. Configure yout database credencial on config/db.php file.
  3. Run php server locally:
./yii serve (for Yii) 

or

php -S localhost:8080

How to:

Go to "login" link on the top and try your username and password you already inserted on table called "acesso"

Have a nice day!