Skip to content

A lightweight PHP MVC framework. Version:2.0

Notifications You must be signed in to change notification settings

Minisoco/tinyphp-framework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tinyphp-framework

一款简单的、轻量级的,经过日PV十亿级别的生产环境检验的 MVC 框架。

  • 主要应用于分布式的、高并发的生成环境。
  • 适应于多人团队协作;
  • 支持多环境和分布式处理;
  • 适用于 Web/Console/RPC等运行环境,包括单一命令行文件打包,多任务的服务端守护进程等。

支持

引导

运行环境

centos

适应于生产环境,依赖于lnmp-utils。
lnmp-utils: Linux(CentOS7X_64) +openresty(nginx)+Mysql+PHP+Redis一键安装包。
项目地址: https://github.com/saasjit/lnmp-utils

git clone https://github.com/saasjit/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp
cd /data/web/tinyphp
php public/index.php

docker

适应于开发环境

#可更改/data/workspace/tinyphp为自定义IDE工作目录
workspace=/data/workspace/tinyphp

docker pull centos:7

docker run -d -p 80:80 -p 10022:22 -v $workspace:/data/web/tinyphp --name="tinyphp" --hostname="tinyphp" --restart=always centos:7 /sbin/init

docker exec -it tinyphp /bin/bash

#login docker tinyphp

git clone https://github.com/saasjit/lnmp-utils.git
cd ./lnmp-utils
./install.sh -m tinyphp-bootstrap
curl http://127.0.0.1

DEMO

tinyphp

composer create-project saasjit/tinyphp

cd tinyphp

#运行
php public/index.php

#编译
php public/index.php --build

#开启守护进程
php public/index.php -d

#编辑具体配置文件
vi application/config/profile.php

About

A lightweight PHP MVC framework. Version:2.0

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 95.5%
  • HTML 4.5%