Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanaa-ennaji/mvc-framework
MVC framework
https://github.com/sanaa-ennaji/mvc-framework
htaccess php routing
Last synced: 9 days ago
JSON representation
MVC framework
- Host: GitHub
- URL: https://github.com/sanaa-ennaji/mvc-framework
- Owner: sanaa-ennaji
- Created: 2024-01-07T18:49:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T23:36:33.000Z (about 2 months ago)
- Last Synced: 2024-09-19T02:35:20.699Z (about 2 months ago)
- Topics: htaccess, php, routing
- Language: Hack
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mini PHP framework
Mini PHP framework created by [Brad Traversy](https://github.com/bradtraversy) through his udemy course. Customized by me and used as base for integrating and testing new technologies.
### Disclaimer
It's not advisable to use this for live projects as this is still an alpha project I'm using to learn and exercise.
If you are inclined to help with bugs corrections and developing new features you are free to do so.## Getting Started
Copy the project in your folder and install the database dump in your PhpMyAdmin.
Follow the instructions to complete the installation.### Prerequisites
* Apache Server
* PHP 5.6+
* Node.js
* Mysql DatabaseInstall [XAMPP](https://www.apachefriends.org/it/index.html) for an easy quickstart
### Config File
Modify the app/config/config.php file according to your needs. You can use example.config.php file inside the same folder as an example based on my local settings.
```
//Database Configuration
define('DB_HOST', '');
define('DB_USER', '');
define('DB_PASS', '');
define('DB_NAME', '');
```Modify it like this
```
//Database Configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'shareposts');
```### htaccess file
Modify che .htaccess file inside the public folder to match the name of your installation folder
### Install the Database
Create a database of your choice in PhpMyAdmin and import the traversy_mvc.sql file in it.