This PHP MVC framework is created based on the learning from Laracast.
The framework is VERY SIMPLE and will be used just for fun simple projects.
Use these commands to install the dependencies and start the server.
-
Clone from Github
$ git clone git@github.com:devmaroy/php_csmvc_framework.git
-
Navigate into your directory where you cloned repository
$ cd my-folder
-
Download composer
$ https://getcomposer.org/download/
-
Install composer
$ composer install
-
Create MySQL database (.sql file in the repo)
$ php_csmvc_db
The original database name is: php_csmvc_db. Create your custom new database and change config. You can find database config in config.php.
-
Start PHP up
``` $ php -S localhost:8888 ```
you can also use MAMP or something else.
Your site is now running athttp://localhost:8888
!
A quick look at the top-level files and directories you'll see in my project.
.
├── app
├── core
├── public
├── vendor
├── .gitignore
├── composer.json
├── composer.phar
├── config.php
├── index.php
└── README.md
-
/app
: This directory contains all the controllers, views and necessary files for this application. -
/core
: This directory contains all the core code related to the custom MVC framework. You can find in this directory files for routing, helper functions and dependencies”. -
/public
: Files for public - css, images. -
/vendor
: Here you can find 3rd party packages with composer stuff. -
.gitignore
: This file tells git which files it should not track / not maintain a version history for. -
composer.json
: Configuration file for the composer. -
composer.phar
: This directory contains composer stuff. -
config.php
: Configuration file the application - database and other. -
index.php
: Entry point for the application - everything starts here. -
README.md
: A text file containing useful reference information about project.
Created by @devmaroy feel free to contact me
e-mail: hello@devmaroy.com