https://github.com/khamdullaevuz/mvc
simple mvc project
https://github.com/khamdullaevuz/mvc
learn mvc php
Last synced: 5 months ago
JSON representation
simple mvc project
- Host: GitHub
- URL: https://github.com/khamdullaevuz/mvc
- Owner: khamdullaevuz
- License: mit
- Created: 2022-08-11T00:01:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T06:07:57.000Z (about 2 years ago)
- Last Synced: 2025-10-08T23:28:21.936Z (9 months ago)
- Topics: learn, mvc, php
- Language: PHP
- Homepage:
- Size: 742 KB
- Stars: 25
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mvc
### simple mvc project
# Usage
## Using git (for usage and contribute)
### Clone repository
```shell
git clone https://github.com/khamdullaevuz/mvc
```
### Dump autoloader
```shell
composer dump-autoload
```
## Using composer (for usage)
### Create project
```shell
composer create-project khamdullaevuz/mvc:dev-main
```
## Configure
### Make config
```shell
php do make:config
```
#### and change config file `config/Core.php`
### Make controller
```shell
php do make:controller TestController
```
### Make model
```shell
php do make:model Test
```
### Make migration
```shell
php do make:migration Products
```
### Migration up
```shell
php do migrate:up
```
### Migration down
```shell
php do migrate:down
```
### Run server
#### with default port (8000)
```shell
php do serve
```
#### and visit [localhost:8000](http://localhost:8000)
#### with custom port
```shell
php do serve 9000
```
#### and visit [localhost:9000](http://localhost:9000)