PHPackages                             shadiakiki1986/wp-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. shadiakiki1986/wp-api

ActiveLibrary[API Development](/categories/api)

shadiakiki1986/wp-api
=====================

Laravel - WordPress API

0.1.1(9y ago)18022MITPHPPHP &gt;=5.4.0

Since Oct 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/shadiakiki1986/WordPress-API)[ Packagist](https://packagist.org/packages/shadiakiki1986/wp-api)[ RSS](/packages/shadiakiki1986-wp-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

This is a fork, published at packagist under [shadiakiki1986/wp-api](https://packagist.org/packages/shadiakiki1986/wp-api)

Install with `composer require shadiakiki1986/wp-api`

The `client id` field and `client secret` field need to be obtained after creating a new Application in Wordpress. Using wordpress.com, it can be done with the [applications manager](https://developer.wordpress.com/apps/) as documented on wordpress's [oauth2](https://developer.wordpress.com/docs/oauth2/) page. Note that this package uses `grant_type => password` documented on the oauth2 page (i.e. to use username and password directly)

WordPress API
=============

[](#wordpress-api)

This package allows Laravel users to interact with the WordPress API. I personally use this as a way to abstract the WordPress backend from the frontend of the website.

### Usage

[](#usage)

Usage is simple as you can hope...

```
