webmiss / lumen by webmiss

The Webmis Project
6
1
1
Package Data
Maintainer Username: webmiss
Maintainer Contact: klingsoul@163.com (webmis)
Package Create Date: 2017-12-02
Package Last Update: 2018-07-21
Home Page: http://lumen.webmis.vip/admin
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:10:51
Package Statistics
Total Downloads: 6
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

WebMIS

WebMIS基于Lumen轻量级、高性能、面向对象的HMVC框架! Home: http://lumen.webmis.vip/ Admin: http://lumen.webmis.vip/admin/ uanme: admin passwd: admin

安装

1) 创建项目

composer create-project webmiss/lumen lumen

2) 导入数据库

public/db/mvc.sql

3) 更新项目

composer update

美化URL

1) Apache(public/.htaccess)

# 编码
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
    # 重写
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>

2) Nginx

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

Home: http://localhost/
Admin: http://localhost/admin/Index/index