2017 © Pedro Peláez
 

library laravel-wp-api

Laravel package for the Wordpress JSON REST API forked from threesquared

image

swancreative/laravel-wp-api

Laravel package for the Wordpress JSON REST API forked from threesquared

  • Wednesday, February 14, 2018
  • by mattjwilding
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,242 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 34 % 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)

"mattwilding/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(
  Mattwilding\LaravelWpApi\LaravelWpApiServiceProvider::class
)

'aliases' => array(
  'WpApi' => Mattwilding\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 Mattwilding\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

14/02 2018

dev-master

9999999-dev

Laravel package for the Wordpress JSON REST API forked from threesquared

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman/Matt Wilding

wordpress laravel api rest package

14/02 2018

1.2.1

1.2.1.0

Laravel package for the Wordpress JSON REST API forked from threesquared

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman/Matt Wilding

wordpress laravel api rest package

14/02 2018

1.2.0

1.2.0.0

Laravel package for the Wordpress JSON REST API forked from threesquared

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman/Matt Wilding

wordpress laravel api rest package

12/02 2018

1.1.1

1.1.1.0

Laravel package for the Wordpress JSON REST API forked from threesquared

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman/Matt Wilding

wordpress laravel api rest package

25/01 2018

1.1.0

1.1.0.0

Laravel package for the Wordpress JSON REST API forked from threesquared

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman/Matt Wilding

wordpress laravel api rest package

31/05 2017

1.0.0

1.0.0.0

Laravel package for the Wordpress JSON REST API forked from threesquared

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Speakman/Matt Wilding

wordpress laravel api rest package