Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amirhnajafiz/model-view-controller
Implementing MVC architecture with PHP.
https://github.com/amirhnajafiz/model-view-controller
mvc mvc-architecture mvc-core mvc-pattern php php-library
Last synced: 3 months ago
JSON representation
Implementing MVC architecture with PHP.
- Host: GitHub
- URL: https://github.com/amirhnajafiz/model-view-controller
- Owner: amirhnajafiz
- License: gpl-3.0
- Created: 2021-07-23T09:28:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T13:28:24.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T11:21:27.679Z (3 months ago)
- Topics: mvc, mvc-architecture, mvc-core, mvc-pattern, php, php-library
- Language: PHP
- Homepage: https://packagist.org/packages/amirhnajafiz/basic_mvc
- Size: 104 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Implementing simple Model View Controller website with PHP.
This is the base of a MVC project. All routes and models and controllers are already setupt.
Just clone the project and use it.## How to use?
This project will build a basic website based on MVC.
To customize it, first install composer.Clone the project by:
```shell
git clone https://github.com/amirhnajafiz/PHP-MVC.git
```Enter the main dir:
```shell
cd Basic-MVC
```Update the composer for vendor creation:
```shell
composer update
```All good, if you want to rename the package, go to composer.json and change the settings and update
the composer again.Now you are good to create your controllers and models.
You have to set the database configurations in /models/Database.php .And finaly run the server by the following command:
```shell
php -S 127.0.0.1:8080 -t public
```All done.