PHPackages                             dsampaolo/wordpress-to-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. dsampaolo/wordpress-to-laravel

ActiveLibrary[API Development](/categories/api)

dsampaolo/wordpress-to-laravel
==============================

Package to sync a Wordpress blog with a Laravel app

0401PHP

Since Jul 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dsampaolo/wordpress-to-laravel)[ Packagist](https://packagist.org/packages/dsampaolo/wordpress-to-laravel)[ RSS](/packages/dsampaolo-wordpress-to-laravel/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Purpose
=======

[](#purpose)

The purpose of this package is to allow you to duplicate an existing Wordpress blog into a Laravel application. It is not a full blog package, it doesn't have a backend. You will have to publish your posts to an existing Wordpress and then sync them to your Laravel app.

Getting started
===============

[](#getting-started)

Install the package using Composer
----------------------------------

[](#install-the-package-using-composer)

`composer require dsampaolo/wordpress-to-laravel`

Publish assets (views and configuration file)
---------------------------------------------

[](#publish-assets-views-and-configuration-file)

`php artisan vendor:publish`

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

[](#configuration)

Edit your .env file (or the package's configuration file) to match your desired configuration :

- WP2LV\_BLOG\_URL : URL of the remote blog
- WP2LV\_CATEGORY\_ID : ID of the category to replicate (parent)
- WP2LV\_RSS\_URL (default /feed) : URL of the RSS feed for your Laravel application
- WP2LV\_LOCAL\_BLOG\_PATH (default /blog) : URL of the homepage of the blog on your Laravel app
- WP2LV\_IMPORT\_LIMIT (default 20) : how many posts to import/sync

In the configuration file, you will also find a local\_img\_storage\_path variable, which defines the path where the post's images will be saved.

That's it. Go to  to visit your blog.

What it can/can't do
====================

[](#what-it-cancant-do)

This package will replicate all posts in ONE category of your Wordpress remote blog to your Laravel app. Eaech post can be in only ONE sub-category of the parent category.

Example : Let's say your Laravel App is named A. Your blog posts MUST be in A/First Cat or A/Second Cat in order for them to be synced. Also, they must be published.

The package will download images (featured and inside the post) to your app's server, and change URLs inside the post accordingly.

Your blog will extend layouts.app - feel free to edit your blog's views if you use something else.

This package doesn't sync posts automatically. You have to launch the importer manually.

See also
========

[](#see-also)

-
-
-

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/1384803?v=4)[Didier Sampaolo](/maintainers/dsampaolo)[@dsampaolo](https://github.com/dsampaolo)

### Embed Badge

![Health badge](/badges/dsampaolo-wordpress-to-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/dsampaolo-wordpress-to-laravel/health.svg)](https://phpackages.com/packages/dsampaolo-wordpress-to-laravel)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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