hgh/fox-framework 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hgh/fox-framework

Composer 安装命令:

composer require hgh/fox-framework

包简介

The mini framework

README 文档

README

Fox

This is a mini framework to run some basic web apps.

Table of contents

Installation

require the package by following composer command:

composer require hgh/fox-framework

Folder structure of the framework

The folder structure of the app is:

 - app
 ----- Console
 ---------- Commands
 ----- Http
 ---------- Controllers
 ----- Models
 - public
 ----- index.php
 - resources
 ----- views
 - storage
 ----- logs

Controllers

The controllers to render the web pages. All the controllers must be extended from Fox/Controller/Controller. The parent class will provide some common methods. The list of methods:

  • render
  • json

Models

The models to interact with the database. All the models must be extended from Fox/Database/Model. The parent method will provide some methods to interact with database. The list of all methods:

  • find(static)
  • insert(static)
  • findOne(static)

Console

The commands to run some actions in the CLI. All the consoles must be extended from Fox/Console/Console. Sone notes that must considered:

  • All the commands must have the SIGNATURE const to use in the console. like sample:action
  • SINGATURE may have the arguments. Arguments must be surrounded by the {}. sample:action {sampleArgument}
  • Optional arguments must have ? before the argument name. like sample:action {?sampleArgument}

Environment variables

Variable Description Available values
DATABASE The engine of database mysql
MYSQL_HOST The host of MySQL anything
MYSQL_USERNAME The username of MySQL anything
MYSQL_PASSWORD The password of MySQL anything
MYSQL_PORT The port of MySQL anything
MYSQL_DATABASE The database name anything
APP_DEBUG Debug mode of application. When it is on you can see the errors and their trace true or false

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固