https://github.com/webmiss/lumen
WebMIS基于Lumen轻量级、高性能、面向对象的HMVC框架!
https://github.com/webmiss/lumen
framework lumen php webmis
Last synced: 4 months ago
JSON representation
WebMIS基于Lumen轻量级、高性能、面向对象的HMVC框架!
- Host: GitHub
- URL: https://github.com/webmiss/lumen
- Owner: webmiss
- Created: 2017-12-02T07:55:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T04:34:45.000Z (over 7 years ago)
- Last Synced: 2024-04-19T06:22:42.579Z (almost 2 years ago)
- Topics: framework, lumen, php, webmis
- Language: PHP
- Homepage: http://lumen.webmis.vip/admin
- Size: 2.34 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebMIS
WebMIS基于Lumen轻量级、高性能、面向对象的HMVC框架!
Home: http://lumen.webmis.vip/
Admin: http://lumen.webmis.vip/admin/
uanme: admin passwd: admin
# 安装
### 1) 创建项目
``` bash
composer create-project webmiss/lumen lumen
```
### 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 lumen.webmis.cn;
set $root_path '/home/www/lumen/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
```