Giter Site home page Giter Site logo

WP Framework

从08年使用WordPress至今,18年开始自学开发,19年开始开发基于WordPress的前端插件 wnd-frontend ,最终尝试完全从零开发一个属于自己的 php 框架。 显然,框架核心理念甚至代码段主要来自 WordPress 内核,及 wnd-frontend 插件。

QA

  • 和WP的区别是什么: 本项目的主要目的是基于WP现有的设计理念,构建一款高性能框架。旨在保持WP优秀的设计理念和灵活性的同时,大幅精简非必要功能同时提高性能。 WP 面向广大普通用户。本项目主要面向具有WP使用经验,同时具有一定开发能力,追求高性能的开发者。项目仅在底层设计借鉴WP,但不会兼容WP生态。

总之:性能,性能,还是 TMD 性能!

核心功能

数据库参考 WP 针对性能优化,做适当修改

  • 优化字段
  • 新增附件数据表 attachments
  • 调整 users 及 posts 字段

API 路由

Api 部分参考 wnd-frontend 插件

  • /{{api_prefix}}/

内容筛选

  • /{{api_prefix}}/users/
  • /{{api_prefix}}/posts/
  • /{{api_prefix}}/comments/
  • /{{api_prefix}}/terms/

操作节点

  • /{{api_prefix}}/action/
  • /{{api_prefix}}/module/
  • /{{api_prefix}}/endpoint/
  • /{{api_prefix}}/query/

主题拓展操作节点

  • /{{api_prefix}}/theme/action/ ……

插件拓展操作节点

  • /{{api_prefix}}/extend/action/ ……

数据读取

  • /{{api_prefix}}/query/
  • /{{api_prefix}}/query/user/{{id_or_slug}}
  • /{{api_prefix}}/query/post/{{id_or_slug}}
  • /{{api_prefix}}/query/term/{{id_or_slug}}
  • /{{api_prefix}}/query/comment/{{id_or_slug}}

渲染 URL 路由

  • /user/ 用户
  • /console/ 控制台
  • /{{post_type}}/{{id_or_slug}} 正文
  • /{{taxonomy}}/{{id_or_slug}} 分类

Swling's Projects

cloc icon cloc

PHP统计项目代码总行数(含空格)

editor.js icon editor.js

A block-styled editor with clean JSON output

form-builder icon form-builder

PHP bulma from builder:基于BulmaCSS框架的 PHP 表单生成器

kodexplorer icon kodexplorer

A web based file manager,web IDE / browser based code editor

lnmp icon lnmp

LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RHEL/Fedora/Aliyun/Amazon、Debian/Ubuntu/Raspbian/Deepin/Mint Linux VPS或独立主机安装LNMP(Nginx/MySQL/PHP)、LNMPA(Nginx/MySQL/PHP/Apache)、LAMP(Apache/MySQL/PHP)生产环境的Shell程序。

paipan icon paipan

PHP JavaScript 农历公历干支历互转,万年历,四柱,六十甲子,属相,十二星座,二十四节气,支持从-1000到3000年间的八字排盘及大运推算,分析刑冲合害关系

staticfile icon staticfile

静态文件托管,以利用 jsdelivr 为海外用户做 cdn

tags-input icon tags-input

JQuery Tas input 标签编辑器:支持Ajax自动建议,限制最大个数等

webpress icon webpress

基于 WordPress 设计理念开发的简易 PHP 框架

wnd-wp-oss icon wnd-wp-oss

WordPress无缝上传文件至阿里云OSS对象存储

wndt icon wndt

万能的WordPress主题:前端用户中心、付费阅读下载、投稿分成;基于Wnd-Frontend;无限二次开发

wp-proxy icon wp-proxy

解决**服务器无法下载更新WordPress主题插件及内核的问题

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.