Code Monkey home page Code Monkey logo

cleanphp's Introduction

🚀 安全高效的开发框架

简介

​ CleanPHP是一套简洁、安全的PHP Web开发框架。CleanPHP的设计**基于Android与Vue单页应用开发模式,融合了传统PHP框架开发方案,具有开发速度快、运行速度快、安全性可靠等优势。

特性

  • 支持Composer
  • 支持插件化拓展(定时任务、WebSocket等...)
  • 支持多种输出渲染引擎(视图渲染、Json渲染等)
  • 支持后台任务,需要使用中间件运行PHP才能生效
  • 支持数据库ORM模型
  • 面向应用的开发模式
  • 支持自动精简打包
  • 支持单文件运行
  • 支持自动检查代码问题并提供解决方案
  • ......

文档

阅读文档

快速上手

硬性要求: PHP版本 >= 8.0

git clone https://github.com/dreamncn/CleanPHP

Nginx配置Public目录为运行目录:

root			/www/a.com/public;

Nginx伪静态配置

if ( $uri ~* "^(.*)\.php$") {    
rewrite ^(.*) /index.php break;  
}	

location / {
  try_files $uri $uri/ /index.php?$query_string;
}

location /ws {
         proxy_pass http://127.0.0.1:4405;
         proxy_read_timeout 300s;
         proxy_send_timeout 300s;
         proxy_http_version 1.1;
        proxy_set_header Host $host;
        # 下面这两行是关键
        proxy_set_header Upgrade '';
        proxy_set_header Connection upgrade;
     }

开源协议

MIT

cleanphp's People

Contributors

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