2017 © Pedro Peláez
 

library laravel-wp-api

Laravel package for the Wordpress JSON REST API

image

cyberduck/laravel-wp-api

Laravel package for the Wordpress JSON REST API

  • Thursday, November 30, 2017
  • by Ben-Speakman
  • Repository
  • 17 Watchers
  • 105 Stars
  • 1,463 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 37 Forks
  • 2 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

laravel-wp-api

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

Install

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

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

Configuration

Publish the package config files to configure the location of your Wordpress install:, (*3)

php artisan vendor:publish

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

'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., (*5)

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);

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

Archive

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

The Versions

30/11 2017

dev-laravel/5.2

dev-laravel/5.2

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

by Ben Speakman

wordpress laravel api rest package

04/06 2016

dev-develop

dev-develop

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

by Ben Speakman

wordpress laravel api rest

01/06 2016

dev-master

9999999-dev

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

by Ben Speakman

wordpress laravel api rest package

01/06 2016

1.2.1

1.2.1.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The Requires

 

by Ben Speakman

wordpress laravel api rest package

01/06 2016

1.2.0

1.2.0.0

Laravel package for the Wordpress JSON REST API

  Sources   Download

MIT

The 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