GithubHelp home page GithubHelp logo

tinyphp-framework's Introduction

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

tinyphp-framework's People

Contributors

tinyphporg 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.