Scream into the digital abyss. "Rant and Rave" is an exercise in building a MVC framework from scratch posing as a Social Media platform. Similar to REACT, Angular or Laravel, this is built on a Custom MVC Framework written in PHP. This framework does include PDO to help prevent SQL injection. Please refer to the docs below on how to implement.
As a simple social network app users create an account, log in, create a post. Owners can edit or delete their own posts. All logged in users can view (read-only) all users posts.
Follow this link to the Rant and Rave on the Web on 5/2018
Core | Styling | Database |
---|---|---|
PHP | CSS3 | MySql |
BootStrap 4.0 | PDO - Database Access Abstraction Layer | |
Google Fonts |
app
├── config
│ └── connection.php
│
├── controllers
│ │── Pages.php
│ ├── Posts.php
│ └── Users.php
│
├── views
│ ├── inc
│ │ │── header.php
│ │ │── footer.php
│ │ └── navbar.php
│ │── pages
│ │ │── about.php
│ │ └── index.php
│ ├── posts
│ │ │── add.php
│ │ │── edit.php
│ │ │── index.php
│ │ └── show.php
│ └── users
│ │── login.php
│ └── register.php
│
├── models
│ └── Post.php
│ └── User.php
│
├── libraries
│ ├── Controller.php
│ ├── Core.php
│ └── Database.php
│
├── helpers
│ ├── session_helper.php
│ └── url_helper.php
│
├── composer.json
│
├── .htaccess
│
├── bootstrap.php
│
public
├── js
│ └── main.js
├── css
│ └── styles.css
├── img
│ └── images.png
│
├── index.php
│
├── .htaccess
│
.htaccess
│
schema
│ └── schema.sql
│
vendor (Generated content)
- Clone down this repo.
- Create your own SQL server in phpAdmin
- In
config/config.php
update server settings with your settings - In
public/.htaccess
updateSITENAME
on line 4 ofRewriteBase
- Build Models in the model folder according to the model example provide. (example model not intended to be included "as is" in your project)
- Open your project folder in browser
localhost/_YOUR_PROJECT_FOLDER_/pages/
MIT