Git Product home page Git Product logo

phpcms's Introduction

基于 PHPCMS v9.6.3 进行升级改造

PHPCMS 升级版

项目基于 PHPCMS v9.6.3 进行升级改造,主要目标

  • 代码规范 psr-1 psr-2
  • include加载 => namespace加载 70%
  • 基于phpstorm doc 修补掉 各种 ide warnning 70%
  • 界面html美化 10%

基于以上目标改造后,代码将

  • 更加现代化,可运行在高版本php,如php7
  • 更统一美观的界面
  • 更好的开发体验,代码doc的完善

部署

git clone https://github.com/zx5435/phpcms.git
make build
// 修改 docker-compose.yml 端口 1414
make start

结构介绍

.
├── __cicd__
│   ├── nginx
│   └── php
├── caches
│   ├── caches_*
│   ├── configs                 // 配置
│   ├── error_log.php           // 错误日志
│   └── install.lock
├── composer.json               // composer安装适合 升级更新
├── docker-compose.yml
├── vendor
│   ├── autoload.php
│   └── zx5435                  // 核心库
│       └── phpcms
└── web                         // nginx入口,解决非正常访问.php
    ├── api.php
    ├── favicon.ico
    ├── index.php
    ├── install                 // 安装目录
    ├── statics                 // 静态文件
    └── uploadfile              // 上传目录
location ~ .*\.html$
{
	rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
	rewrite ^/show-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
	rewrite ^/list-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=lists&catid=$1&page=$2 last;
}

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.