2017 © Pedro Peláez
 

library laravel-wp-api

Laravel package for the Wordpress JSON REST API

image

astritzeqiri/laravel-wp-api

Laravel package for the Wordpress JSON REST API

  • Thursday, March 2, 2017
  • by astritzeqiri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 37 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

This is a fork of threesquared/laravel-wp-api, (*1)

laravel-wp-api

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)

"astritzeqiri/laravel-wp-api": "~2.1"

Configuration

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

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

'aliases' => array(
  'WpApi' => AstritZeqiri\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 AstritZeqiri\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/03 2017

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

09/02 2017

2.1.3

2.1.3.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

09/02 2017

2.0.2

2.0.2.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

09/02 2017

2.1.2

2.1.2.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

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