Skip to content

faisallbhr/php-mvc-auth-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP MVC with Authentication Boilerplate

I hate the syntax, but I never give up 😁.

Welcome

Welcome

Dashboard

Dashboard

Products Table

Products Table

Create Product

Create Product

Product Detail

Product Detail

How to use it?

Clone the repository into your web server directory:

git clone https://github.com/faisallbhr/php-mvc-auth-boilerplate.git

Open the utils/DBConnection.php file then customize it with your database:

private function __construct()
{
    try {
        $this->pdo = new PDO("mysql:host=localhost;dbname=php_mvc", 'root', '');
        $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    } catch (PDOException $e) {
        die('Database connection failed: ' . $e->getMessage());
    }
}

Import SQL from /utils/db.sql into your database 😉.

Run your server, then access this project 🤙.

Let's try it!

I didn't really like using native PHP before, but I tried it and enjoyed it 😁.

About

PHP MVC boilerplate with built-in user authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published