PHPackages                             meesoverdevest/wp\_on\_laravel - 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. meesoverdevest/wp\_on\_laravel

ActiveLibrary[API Development](/categories/api)

meesoverdevest/wp\_on\_laravel
==============================

A package that syncs WordPress posts, categories and tags with your laravel project.

1.1.0(8y ago)165MITPHPPHP &gt;=7.0.0

Since Mar 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/meesoverdevest/wp_on_laravel)[ Packagist](https://packagist.org/packages/meesoverdevest/wp_on_laravel)[ RSS](/packages/meesoverdevest-wp-on-laravel/feed)WikiDiscussions master Synced 4w ago

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

WP-on-Laravel
-------------

[](#wp-on-laravel)

A Laravel Package which makes use of WordPress to easily manage blog content, but also makes it possible to access all WordPress' posts, categories and tags through Eloquent Models.

---

### Requirements

[](#requirements)

- WP CLI globally installed
- A valid `APP_URL` in your `.env`-file

### 1 Run `composer require meesoverdevest/wp_on_laravel`

[](#1-run-composer-require-meesoverdevestwp_on_laravel)

### 2 Add service provider to config

[](#2-add-service-provider-to-config)

Add the service provider in `config/app.php`:

```
 'providers' = [
   ...
   meesoverdevest\wp_on_laravel\WPServiceProvider::class
 ];
```

### 3 Run the installer

[](#3-run-the-installer)

Run the following from your project folder: `php artisan wol:install $password $email`

Replace $password and $email with your wished credentials to use in WordPress.

gitignore public/blog if you don't want you content and uploads to be public.

### 4 Install Cartalyst Tags

[](#4-install-cartalyst-tags)

Our package depends on Cartalyst Tags, which installs automatically as dependency. To be able to use Cartalyst Tags with WP\_on\_Laravel, you have to run their migrations as well. Doing so: `$ php artisan vendor:publish --provider="Cartalyst\Tags\TagsServiceProvider" --tag="migrations"` or without publishing `php artisan migrate --path=vendor/cartalyst/tags/resources/migrations`

### 5 Run migration

[](#5-run-migration)

After running the installation command (`php artisan wol:install $password $email`)

Run `php artisan migrate` to migrate the new migrations

### 6 Edit NGINX config

[](#6-edit-nginx-config)

To enable outer access to the public WordPress installation you have to add the following to your website's nginx config:

```
server {
 ...
  location = /blog {
   return 301 /blog/wp-login.php;
  }

  location /blog/wp-json {
    try_files $uri $uri/ /blog/index.php?$query_string;
  }

  location /blog/wp-admin {
    try_files $uri $uri/ /blog/index.php?$query_string;
  }

  location / {
    // standard settings
  }
 ...
}

```

Don't forget to run `(sudo) service nginx restart`

### 7 Syncing Wordpress Posts, Categories and Tags

[](#7-syncing-wordpress-posts-categories-and-tags)

```
 use meesoverdevest\wp_on_laravel\helpers\WPAPI;

 function syncWP(){
   $WPAPI = new WPAPI();
   $WPAPI->syncWP();
 }
```

### 8 Using Wordpress Posts, Categories and Tags

[](#8-using-wordpress-posts-categories-and-tags)

Use them freely inside your project. You can use the models like:

```
 // WPPost
 use meesoverdevest\wp_on_laravel\models\WPPost;

 // WPCategory
 use meesoverdevest\wp_on_laravel\models\WPCategory;

 // Tag (managed by Cartalyst/Tags)
 use meesoverdevest\wp_on_laravel\models\Tag;

 // Show WPCategories for post
 $posts = WPPost::where('parent', 0)->first()->categories();

 // Show WPosts for tag
 $tag = Tag::first()->posts();

 // Show children WPCategories for parent WPCategory
 $tag = WPCategory::first()->children();

```

====== TODO ======

1. Add Delete Method and Webhooks to Package and functions.php in Wordpress installation
2. Extend content retrieval methods
3. Normalize the codebase

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity68

Established project with proven stability

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 ~10 days

Recently: every ~2 days

Total

22

Last Release

3191d ago

Major Versions

0.0.13 → 1.0.132017-04-26

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.4

1.0.16PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16432502?v=4)[webrew](/maintainers/webrew)[@webrew](https://github.com/webrew)

---

Tags

laravel-packagewordpresslaravelwordpresspackage

### Embed Badge

![Health badge](/badges/meesoverdevest-wp-on-laravel/health.svg)

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.8k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[essa/api-tool-kit

set of tools to build an api with laravel

53386.5k](/packages/essa-api-tool-kit)[flat3/lodata

OData v4.01 Producer for Laravel

99346.1k](/packages/flat3-lodata)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[bmatovu/laravel-mtn-momo

Laravel MTN MOMO integration.

14312.0k](/packages/bmatovu-laravel-mtn-momo)

PHPackages © 2026

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