PHPackages                             avexsoft/laravel-sidepress - 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. avexsoft/laravel-sidepress

ActiveLibrary

avexsoft/laravel-sidepress
==========================

Let Wordpress share the same domain root, side-by-side, with Laravel

1.0.0(5y ago)313MITPHP

Since Mar 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/avexsoft/laravel-sidepress)[ Packagist](https://packagist.org/packages/avexsoft/laravel-sidepress)[ Docs](https://github.com/avexsoft/laravel-sidepress)[ RSS](/packages/avexsoft-laravel-sidepress/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Sidepress
=========

[](#sidepress)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0f741be831885119fe19fd2c63ec2f182d623def38a26fea22e17f04ce139b59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61766578736f66742f6c61726176656c2d7369646570726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/avexsoft/laravel-sidepress)[![Total Downloads](https://camo.githubusercontent.com/b0a70fae94e3c0df88ebb5fb332b06fbb1972f29007a1591e2e7b1b858003b0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61766578736f66742f6c61726176656c2d7369646570726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/avexsoft/laravel-sidepress)[![Build Status](https://camo.githubusercontent.com/51fa538b548fcb33f58951e324f976f97ecb357b2b67124986d4a2dd54a4b534/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f61766578736f66742f6c61726176656c2d7369646570726573732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/avexsoft/laravel-sidepress)

What does this do?
------------------

[](#what-does-this-do)

A Laravel package to let Wordpress share the same domain root, side-by-side.

- This is best illustrated using a set of URIs below
- Laravel has the final control of all URIs
- As such, `php artisan down` also brings down Wordpress frontend pages

URIRemarksCan be handled by Laravel or WordpressCan be handled by Laravel or WordpressCan be handled by Laravel or WordpressWhy do we need this?
--------------------

[](#why-do-we-need-this)

> PHP is used by 79.1% of all the websites
>
> \-- , 6th Mar 2021

> Wordpress is used by... 40.5% of all websites.
>
> \-- , 6th Mar 2021

Codewise, Laravel and Wordpress were built very differently and seemed quite impossible to co-exist until now. Given the numerous other attempts to marry them, we consider ourselves lucky to have chanced upon this approach.

The main benefit here is to include the Wordpress community in our Laravel projects. This package hopes to serve as a progressive step to assimilate Wordpress projects into Laravel.

How does it work?
-----------------

[](#how-does-it-work)

1. All URIs are handled by Laravel first
2. Non-existent URIs end up in a catch-all route that appends `sidep=1` and performs a `redirect()`
3. When the browser retries with `sidep=1`, Laravel's `public/index.php` sends it off to Wordpress

### Pros

[](#pros)

- Instead of placing Wordpress in a subfolder such as `/blog`, Wordpress now sits on the root domain as a 1st class citizen (almost!).
- This gives the folks who are more familiar with Wordpress to continue as usual, yet allows Laravel to come into the picture and overwrite any URI as required.
- There is minimal interference in terms of code and operation between the 2 projects. See [Known issues/behavior](#known-issuesbehavior).

### Cons

[](#cons)

- Using this package, every Wordpress URI is loaded twice, however, with caching and the high performance levels of PHP and Laravel today, this can be an acceptable trade off for some.

### Aim

[](#aim)

- To maintain the small, low-code footprint
- To reduce the performance impact of loading each URI twice

Take a look at [contributing.md](contributing.md) to see a to do list.

Known issues/behavior
---------------------

[](#known-issuesbehavior)

- Some Wordpress plugins will modify `public/.htaccess` and break Laravel, monitor this file closely
- POST via Wordpress's `index.php` will be blocked by Laravel's `VerifyCsrfToken` middleware, i.e. HTTP 419, and that is actually a good thing. You can add to the middleware's `$except` list to workaround this. Wordpress comments will work without modification as it POST via `wp-comments-post.php`

Installation
------------

[](#installation)

Via Composer

```
$ composer require avexsoft/laravel-sidepress
```

Usage
-----

[](#usage)

```
# Patch Laravel and create the Wordpress installation shell script
$ php artisan sidepress:install

# Install and configure Wordpress
$ ./sidepress-install.sh
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

No tests yet, feel free to submit PRs

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

We recommend having a separate database for Wordpress to mitigate any malicious/vunerable plugins.

Credits
-------

[](#credits)

- [Avexsoft](https://github.com/avexsoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see the [license file](license.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01ce2076ac3e23f06711bf649a3209f5b2ee4903a8a9b34c64b8bde764d6177b?d=identicon)[avexsoft](/maintainers/avexsoft)

---

Top Contributors

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

---

Tags

laravelwordpressSidepress

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avexsoft-laravel-sidepress/health.svg)

```
[![Health](https://phpackages.com/badges/avexsoft-laravel-sidepress/health.svg)](https://phpackages.com/packages/avexsoft-laravel-sidepress)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[madeitbelgium/wordpress-php-sdk

WordPress Laravel PHP SDK

4422.9k1](/packages/madeitbelgium-wordpress-php-sdk)[ammardev/laravel-wp-hash-driver

Supports Wordpress passwords hashing and checking in Laravel's Hash facade.

169.3k](/packages/ammardev-laravel-wp-hash-driver)

PHPackages © 2026

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