https://github.com/webmiss/webmis
WebMIS是轻量级、高性能、面向对象的HMVC框架!
https://github.com/webmiss/webmis
framework php webmis
Last synced: 2 months ago
JSON representation
WebMIS是轻量级、高性能、面向对象的HMVC框架!
- Host: GitHub
- URL: https://github.com/webmiss/webmis
- Owner: webmiss
- Created: 2017-11-06T08:54:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T02:55:19.000Z (over 7 years ago)
- Last Synced: 2024-12-09T22:27:54.181Z (over 1 year ago)
- Topics: framework, php, webmis
- Language: PHP
- Homepage: http://mvc.webmis.vip/admin
- Size: 949 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebMIS
WebMIS是轻量级、高性能、面向对象的HMVC框架!
Home: http://mvc.webmis.vip/
Admin: http://mvc.webmis.vip/admin/
uanme: admin passwd: admin
# 安装
### 1) 创建项目
``` bash
composer create-project webmiss/webmis mvc
```
### 2) 导入数据库
``` bash
public/db/mvc.sql
```
### 3) 更新项目
``` bash
composer update
```
# 美化URL
### 1) Apache(public/.htaccess)
```bash
# 编码
AddDefaultCharset UTF-8
# 重写
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
```
### 2) Nginx
```bash
listen 80;
server_name mvc.webmis.cn;
set $root_path '/home/www/mvc/public/';
root $root_path;
index index.php index.html;
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}
location ~* ^/(webmis|upload|themes|favicon.png)/(.+)$ {
root $root_path;
}
```
### Url
```bash
Home: http://localhost/
Admin: http://localhost/admin/Index/index
```