PHPackages                             cyberduck/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. [HTTP &amp; Networking](/categories/http)
4. /
5. cyberduck/laravel-wp-api

Abandoned → [threesquared/laravel-wp-api](/?search=threesquared%2Flaravel-wp-api)Library[HTTP &amp; Networking](/categories/http)

cyberduck/laravel-wp-api
========================

Laravel package for the Wordpress JSON REST API

1.2.1(9y ago)1291.5k48[1 issues](https://github.com/Cyber-Duck/laravel-wp-api/issues)[1 PRs](https://github.com/Cyber-Duck/laravel-wp-api/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 7Pushed 8y ago17 watchersCompare

[ Source](https://github.com/Cyber-Duck/laravel-wp-api)[ Packagist](https://packagist.org/packages/cyberduck/laravel-wp-api)[ RSS](/packages/cyberduck-laravel-wp-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)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:

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

```

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

[](#configuration)

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

```
php artisan vendor:publish

```

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

```
'providers' => array(
  'Cyberduck\LaravelWpApi\LaravelWpApiServiceProvider'
)

'aliases' => array(
  'WpApi' => 'Cyberduck\LaravelWpApi\Facades\WpApi'
),
```

### 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 WpApi class.

#### Posts

[](#posts)

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

#### Pages

[](#pages)

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

#### Post

[](#post)

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

#### Categories

[](#categories)

```
WpApi::categories();
```

#### Tags

[](#tags)

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

#### Category posts

[](#category-posts)

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

#### Search

[](#search)

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

#### Archive

[](#archive)

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

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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.

###  Release Activity

Cadence

Every ~165 days

Total

3

Last Release

3632d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27ef1eafa7cfeb2a4d815ff6329e472795ab626f27504a1467f0df43fded7d7e?d=identicon)[Ben-Speakman](/maintainers/Ben-Speakman)

---

Top Contributors

[![threesquared](https://avatars.githubusercontent.com/u/892142?v=4)](https://github.com/threesquared "threesquared (5 commits)")[![SimoTod](https://avatars.githubusercontent.com/u/8427737?v=4)](https://github.com/SimoTod "SimoTod (3 commits)")

---

Tags

apilaravelwordpressrestpackage

### Embed Badge

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

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

###  Alternatives

[threesquared/laravel-wp-api

Laravel package for the Wordpress JSON REST API

1310.3k](/packages/threesquared-laravel-wp-api)[pixelpeter/laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API

125103.4k](/packages/pixelpeter-laravel5-woocommerce-api-client)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[illuminatech/data-provider

Allows easy build for DB queries from API requests

4413.3k](/packages/illuminatech-data-provider)[dreamfactory/df-core

DreamFactory(tm) Core Components

1651.7k20](/packages/dreamfactory-df-core)

PHPackages © 2026

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