2017 © Pedro Peláez
 

project framework-app

Basic Application Template

image

lisijie/framework-app

Basic Application Template

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

基于我的PHP框架的应用模板

安装说明

直接使用composer安装:, (*1)

$ composer create-project lisijie/framework-app

目录结构说明

|- app 应用目录
|  |- Command 命令行脚本控制器(可选)
|  |- Config 配置文件
|  |- Controller Web控制器
|  |- Exception 自定义异常类型和异常处理器(可选)
|  |- Model 数据模型,提供数据的读写接口,一张表对应一个类(可选)
|  |- Service Service模块,封装业务逻辑,操作Model(可选)
|  |- View 视图模板文件
|- data 运行时数据目录(日志、缓存文件等)
|- public 发布目录,存放外部可访问的资源和index.php入口文件
|- vendor composer第三方包目录

服务器配置

Nginx示例

server {
    listen       80;
    server_name  example.com;
    root   /path/to/project/public;

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

    location ~ \.php$ {
        fastcgi_param  ENVIRONMENT development;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        include        fastcgi.conf;
    }
}

The Versions

04/06 2018

dev-master

9999999-dev https://github.com/lisijie/php-framework-app

Basic Application Template

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template

19/10 2016

v2.0.0

2.0.0.0 https://github.com/lisijie/php-framework-app

Basic Application Template

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template