tigercandy / horizon

:construction: Custom Yet Another Framework. Use Composer、Swoole etc. as base Compents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version Php Version License

A Modern PHP Framework Base on PHP7 and YAF.Integrated Composer and Swoole.

Document

Environmental Requirement

  • 1.PHP >= 7.1.5
  • 2.Yaf
  • 3.Swoole
  • 4.Composer

Install

  • Clone
  • Composer install

Configuration

edit the config/app.ini

[common]
yaf.use_spl_autoload = on
yaf.environ = develop

; application
application.name = horizon
application.timezon = Asia/Shanghai
application.directory = APP_PATH "/application/"
application.bootstrap = APP_PATH "/bootstrap/Bootstrap.php"

; database
database.driver = mysql
database.charset = utf8
database.prefix = ""
database.port = 3306

; cache

; redis

; session

[product : common]
; database
database.host = localhost
database.username = root
database.password = root
database.database = test

[develop : common]
; database
database.host = localhost
database.username = root
database.password = root
database.database = test

Start Server

php public/index.php

License

MIT

About

:construction: Custom Yet Another Framework. Use Composer、Swoole etc. as base Compents.

License:MIT License


Languages

Language:PHP 80.5%Language:HTML 19.5%