GithubHelp home page GithubHelp logo

raichu's Introduction

Document of Raichu

目录结构规范

  1. app目录,应用目录,新增/修改类、修改目录结构,需要在项目的根目录执行composer dump -o
  • config 全局配置层(数据库为database.php,常量defined.php,自动装载config.php)
  • console 命令行工具、计划任务所在目录
  • engine 核心库目录,存放一些公共的类以及方法,例如控制器, 模型, 视图, Restful风格路由, 分发器, 装载器, 中间件等
  • middleware 中间件目录,放置一些公共的中间件处理,权限判断等
  • modules 项目模块分组层(hello => controller/model/provider)
  • provider 库目录,存放一些公共的类以及方法,例如异步处理、日志记录, 绘画控制、第三方调用等
  • Bootstrap.php 启动器,自动加载,初始化数据库、路由、日志、错误处理
  1. public目录,存放入口文件index.php以及静态资源文件
  2. vendor目录,存放composer加载的包
  3. tool文件为命令行工具入口文件,当实现了新的工具后需要在此文件注册才能使用
  4. 待整理 ...

raichu's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.