PHPackages                             labchain/laravel-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. labchain/laravel-wp-api

ActiveLibrary[API Development](/categories/api)

labchain/laravel-wp-api
=======================

 Modified Laravel package for the Wordpress JSON REST API

01PHP

Since Jul 18Pushed 6y agoCompare

[ Source](https://github.com/cavalhier/Laravel-WP-API)[ Packagist](https://packagist.org/packages/labchain/laravel-wp-api)[ RSS](/packages/labchain-laravel-wp-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-wp-api
==============

[](#laravel-wp-api)

Laravel 5 package for the [Wordpress JSON REST API](https://github.com/WP-API/WP-API)

Install
-------

[](#install)

Simply add the following line to your `composer.json` and run install/update:

```
"Labchain/laravel-wp-api": "~1.0"

```

Configuration
-------------

[](#configuration)

You will need to add the service provider and optionally the facade alias to your `config/app.php`:

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

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

And publish the package config files to configure the location of your Wordpress install:

```
php artisan vendor:publish

```

### Usage

[](#usage)

The package provides a simplified interface to some of the existing api methods documented [here](http://wp-api.org/). You can either use the Facade provided or inject the `Labchain\LaravelWpApi\WpApi` class.

#### Posts

[](#posts)

```
WpApi::posts($page);
```

#### Pages

[](#pages)

```
WpApi::pages($page);
```

#### Post

[](#post)

```
WpApi::post($slug);
```

```
WpApi::postId($id);
```

#### Categories

[](#categories)

```
WpApi::getCategories();
```

#### Tags

[](#tags)

```
WpApi::tags();
```

#### Category posts

[](#category-posts)

```
WpApi::getCategories($id);
```

#### Author posts

[](#author-posts)

```
WpApi::authorPosts($id);
```

#### Tag posts

[](#tag-posts)

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

#### Search

[](#search)

```
WpApi::search($post);
```

#### Archive

[](#archive)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/54b261297aa33c64f9a2c4d59230e0fca940856c966d9f42133de49831d99984?d=identicon)[Slitaz](/maintainers/Slitaz)

---

Top Contributors

[![sl1taz](https://avatars.githubusercontent.com/u/20157967?v=4)](https://github.com/sl1taz "sl1taz (4 commits)")

### Embed Badge

![Health badge](/badges/labchain-laravel-wp-api/health.svg)

```
[![Health](https://phpackages.com/badges/labchain-laravel-wp-api/health.svg)](https://phpackages.com/packages/labchain-laravel-wp-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
