2017 © Pedro Peláez
 

library laravel-wp-api

Laravel package for the Wordpress JSON REST API

image

threesquared/laravel-wp-api

Laravel package for the Wordpress JSON REST API

  • Friday, December 2, 2016
  • by Ben-Speakman
  • Repository
  • 7 Watchers
  • 11 Stars
  • 4,448 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 38 Forks
  • 0 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

laravel-wp-api

Build Status Latest Stable Version, (*1)

Laravel 5 package for the Wordpress JSON REST API, (*2)

Install

Simply add the following line to your composer.json and run install/update:, (*3)

"threesquared/laravel-wp-api": "~2.0"

Configuration

You will need to add the service provider and optionally the facade alias to your config/app.php:, (*4)

'providers' => array(
  Threesquared\LaravelWpApi\LaravelWpApiServiceProvider::class
)

'aliases' => array(
  'WpApi' => Threesquared\LaravelWpApi\Facades\WpApi::class
),

And publish the package config files to configure the location of your Wordpress install:, (*5)

php artisan vendor:publish

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 Threesquared\LaravelWpApi\WpApi class., (*6)

Posts

WpApi::posts($page);

Pages

WpApi::pages($page);

Post

WpApi::post($slug);

WpApi::postId($id);

Categories

WpApi::categories();

Tags

WpApi::tags();

Category posts

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

Author posts

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

Tag posts

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

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

Archive

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

The Versions

02/12 2016

dev-master

9999999-dev

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman

wordpress laravel api rest package

05/04 2016

2.1.1

2.1.1.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman

wordpress laravel api rest package

16/03 2016

2.1.0

2.1.0.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman

wordpress laravel api rest package

22/01 2016

2.0

2.0.0.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman

wordpress laravel api rest package

13/10 2015

1.1.0

1.1.0.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

by Ben Speakman

wordpress laravel api rest package

07/07 2015

1.0.0

1.0.0.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

by Ben Speakman

wordpress laravel api rest package