Giter Site home page Giter Site logo

tinyphp's Introduction

tinyphp

基于tinyphp framework for php搭建的开发DEMO

  • 经过日PV十亿级别生产环境检验的 MVC Frameworks FOR PHP;
  • 应用于分布式的、高并发的生成环境;
  • 适应于多人团队协作;
  • 支持多环境和分布式处理;
  • 适用于 Web/Console/RPC等运行环境,包括单一命令行文件打包,多任务的服务端守护进等。

快速开始

composer create-project tinyphporg/tinyphp

#console运行
php public/index.php

#单文件编译
php public/index.php --build

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

#curl 127.0.0.1

#配置文件 application/config/profile.php

核心组件

tinyphp-framwork

项目地址: https://github.com/tinyphporg/tinyphp-framework

tinyphp-docs

中文文档: 使用手册、标准库。
项目地址: https://github.com//tinyphp-docs

tinyphp-ui

前端UI组件库: webpack5+bootstrap5+jquery...
项目地址: : https://github.com/tinyphporg/tinyphp-ui

lnmp-utils

Linux(CentOS7X_64) +openresty(nginx)+Mysql+PHP+Redis一键安装包。
项目地址: https://github.com/tinyphporg/lnmp-utils

运行环境

centos

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

git clone https://github.com/tinyphporg/lnmp-utils.git
cd ./lnmp-utils
./install.sh 
cd /data/web/tinyphporg/tinyphp
#console 
php public/index
#url
http://127.0.0.1/

docker

适应于开发环境

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

docker pull centos:7

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

#port 8080 
#   用于tinyphporg/tinyphp-ui调试
# npm run dev

#port 8989 
#    用于tinyphporg/tinyphp-ui打包详情查看
# npm run build

docker exec -it tinyphp /bin/bash

git clone https://github.com/tinyphporg/lnmp-utils.git
cd ./lnmp-utils
./install.sh 

cd /data/web/tinyphporg/tinyphp
php public/index.php

中文文档

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.