discophp/wordpress 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

discophp/wordpress

Composer 安装命令:

composer require discophp/wordpress

包简介

Wordpress Addon for the Disco PHP Framework

README 文档

README

Sick of Wordpress's bloated code but love their administration panel? Your in the right place.

How to use

First install wordpress via their instructions

Then remove the index.php file from the installation directory, you can move the installation directory to any where now to hide it from public view and mask the login without affecting the frontend.

Prep your application by registering the Wordpress Facades with the Disco container:

Make the WP Facade

   Disco::make('WP',function(){
        return new Disco\addon\Wordpress\classes\WordPress;
   });

Create a Router Filter for the wordpress directory

    Router::filter(WP::path().'/{*}')->to('WordPress');

Thats it! Wordpress is set up!

Override any of the templates used

You can override the templates used by the Wordpress Addon by just creating a folder under your template folder called wordpress/ and naming the template you wish to override by the same name as the one used by the Addon

List of Templates

Work with strictly the Data

Using the method:

    $data = WP::get([option],[vars]);

You can receive mysqli_result objects back

[option]

  • index : Primary wordpress feed of articles listed by date.
  • search : Search for regex matches of a search term in the database.
  • list-posts : Return the most recent posts as a feed.
  • post : A single post identified by the slug.
  • tag : Articles sorted by date that used a particular tag.
  • category : Articles sorted by date that used a particular category.
  • author : Articles written by a particular author.
  • recent-posts : List of recent posts.
  • top-terms : Top X terms either 'category' or 'post_tag'.
  • top-authors : top X authors.

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2014-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固