承接 cyberduck/laravel-wp-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

cyberduck/laravel-wp-api

最新稳定版本:1.2.1

Composer 安装命令:

composer require cyberduck/laravel-wp-api

包简介

Laravel package for the Wordpress JSON REST API

README 文档

README

Laravel 5 package for the Wordpress JSON REST API

Install

Simply add the following line to your composer.json and run install/update:

"cyberduck/laravel-wp-api": "~1.0"

Configuration

Publish the package config files to configure the location of your Wordpress install:

php artisan vendor:publish

You will also need to add the service provider and optionally the facade alias to your app/config/app.php:

'providers' => array(
  'Cyberduck\LaravelWpApi\LaravelWpApiServiceProvider'
)

'aliases' => array(
  'WpApi' => 'Cyberduck\LaravelWpApi\Facades\WpApi'
),

Usage

The package provides a simplified interface to some of the existing api methods documented here. You can either use the Facade provided or inject the WpApi class.

Posts

WpApi::posts($page);

Pages

WpApi::pages($page);

Post

WpApi::post($slug);

Categories

WpApi::categories();

Tags

WpApi::tags();

Category posts

WpApi::category_posts($slug, $page);

Search

WpApi::search($query, $page);

Archive

WpApi::archive($year, $month, $page);

统计信息

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

GitHub 信息

  • Stars: 129
  • Watchers: 20
  • Forks: 51
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-28