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 yesterday

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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

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://www.gravatar.com/avatar/91f10f8dfd1c4cad561f5c61e01b91f0820c2d08e9c67c8d092b8613bf40752b?d=identicon)[dsampaolo](/maintainers/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

[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)
