Skip to content

A simple MVC site coded using Object-Oriented Programming (OOP) PHP.

Notifications You must be signed in to change notification settings

elmerdotdev/oop-php-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple MVC framework using Object-Oriented Programming PHP

Demo: https://projects.elmer.dev/oop-mvc/

Uses Bootstrap 4 for the CSS framework.

Features

  • Adding, listing, updating, deleting entries
  • User registration
  • User login/logout
  • Password-hashing (bcrypt encryption)

config.php

Modify the config.php file and add your database credentials.

Database tables

Create two tables in phpmyadmin called shares and users with the fields listed below:

shares_

  • id (INT, PRIMARY, AUTO_INCREMENT)
  • user_id (INT)
  • title (VARCHAR (255))
  • body (TEXT)
  • link (VARCHAR (255))
  • create_date (DATETIME, CURRENT_TIMESTAMP())

users

  • id (INT, PRIMARY, AUTO_INCREMENT)
  • name (VARCHAR (255))
  • email (VARCHAR (255))
  • password (VARCHAR (500))
  • register_date (DATETIME, CURRENT_TIMESTAMP())

About

A simple MVC site coded using Object-Oriented Programming (OOP) PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published