1 Star 0 Fork 1

wvv / lumen

forked from CUTV / lumen 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Lumen 5.4.* 改版开发框架

更新记录

  • 增加 app/Exceptions/ApiHandler.php 接口异常处理 (2017-06-06)
  • 增加 packages/Demo 模块独立模块 (2017-06-06)

下载 composer

https://getcomposer.org/download/

composer 中国镜像设置

composer config -g repo.packagist composer https://packagist.phpcomposer.com

安装

方式1 git 源码拉取

git clone https://git.oschina.net/cutv/lumen.git
cp .env.example .env
composer install

方式2 composer 创建工程

composer create-project --prefer-dist cutv/lumen yourappname

nginx 重写

location / {
    try_files $uri $uri/ /index.php?$args;
}

.env 配置

# 环境配置,生产环境为product
APP_ENV=local

DB读写配置示例

config/database.php

'yao' => [
    'read' => [
        'host' => env('YAO_DB_HOST_R', 'localhost'),
        'port' => env('YAO_DB_PORT_R', '3306'),
        'username' => env('YAO_DB_USERNAME_R', 'forge'),                
        'password' => env('YAO_DB_PASSWORD_R', ''),                 
    ],
    'write' => [
        'host' => env('YAO_DB_HOST_W', 'localhost'),
        'port' => env('YAO_DB_PORT_W', '3306'),
        'username' => env('YAO_DB_USERNAME_W', 'forge'),                
        'password' => env('YAO_DB_PASSWORD_W', ''),                 
    ],            
    'driver' => 'mysql',
    'database' => env('YAO_DB_DATABASE', 'forge'),
    'charset' => 'utf8',
    'collation' => 'utf8_general_ci',
    'prefix' => '',
    'strict' => true,
    'engine' => 'InnoDB',   // 默认 InnoDB
], 

贡献

Your contribution to CUTV Lumen development is very welcome!

You may contribute in the following ways:

The MIT License (MIT) Copyright (c) 2017 洪剑宏 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

lumen 5.4 自定义基础版本 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/wvvs/lumen.git
git@gitee.com:wvvs/lumen.git
wvvs
lumen
lumen
master

搜索帮助

14c37bed 8189591 565d56ea 8189591