PHPackages                             pammel/simple-wordpress-cms - 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. pammel/simple-wordpress-cms

ActiveLibrary

pammel/simple-wordpress-cms
===========================

Use wordpress as CMS and embed generated pages in existing PHP project, e.g. laravel or symfony

v1.1.1(4y ago)234MITPHPPHP &gt;=7.3.0

Since Mar 2Pushed 4y ago2 watchersCompare

[ Source](https://github.com/pammel/simple-wordpress-cms)[ Packagist](https://packagist.org/packages/pammel/simple-wordpress-cms)[ RSS](/packages/pammel-simple-wordpress-cms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (16)Used By (0)

Simple-Wordpress-CMS
====================

[](#simple-wordpress-cms)

[![alt sketch](sketch.png)](sketch.png)

Use case
--------

[](#use-case)

You have an existing PHP project and want to use Wordpress as CMS for specific pages. You only need the page content of the wordpress site, because header, footer, navigation etc. already exists on your site.

This is the concept of Simple-Wordpress-CMS:

- It takes content and design from the wordpress page and embeds it into your PHP site.
- The design of your existing site remains unaffected (e.g. header and footer). This is achieved by encapsulating CSS with Shadow DOM.
- Links and URLs are fixed automatically. (SEO) meta tags also. Except image URLs, these remain the same, because images are stored on the Wordpress server.
- It does not matter where Wordpress is installed, it can be any external server with different URL.

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

[](#installation)

```
$ composer require pammel/simple-wordpress-cms
```

Quick start
-----------

[](#quick-start)

- You have installed Wordpress and already created a page. The URL is e.g.
- In your PHP project the Wordpress pages are accessible under the URL

Use this code to embed the Wordpress page into your PHP project:

```
