Download the PHP package pammel/simple-wordpress-cms without Composer
On this page you can find all versions of the php package pammel/simple-wordpress-cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pammel/simple-wordpress-cms
More information about pammel/simple-wordpress-cms
Files in pammel/simple-wordpress-cms
Download pammel/simple-wordpress-cms
More information about pammel/simple-wordpress-cms
Files in pammel/simple-wordpress-cms
Vendor pammel
Package simple-wordpress-cms
Short Description Use wordpress as CMS and embed generated pages in existing PHP project, e.g. laravel or symfony
License MIT
Package simple-wordpress-cms
Short Description Use wordpress as CMS and embed generated pages in existing PHP project, e.g. laravel or symfony
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-wordpress-cms
Simple-Wordpress-CMS
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
Quick start
- You have installed Wordpress and already created a page. The URL is e.g. https://my-wordpress.com/wp/my-first-page
- In your PHP project the Wordpress pages are accessible under the URL https://my-php-project.com/wp/
Use this code to embed the Wordpress page into your PHP project:
Features
For more functionality see
Caching
It is highly recommended to cache the page object because parsing the WordPress page takes a few seconds. This is an example using Laravel:
Troubleshooting
- Don't use Wordpress themes that rely on JavaScript, especially for rendering.
- I recommend lightweight themes such as https://generatepress.com. It does not use Javascript and it does not cause problems with shortcodes.
- If there are not decoded "shortcodes" in your page, e.g. [vc_column_text]Hello World[/vc_column_text] you have to edit the function.php file of your wordpress theme and add something like this at the end of the file:
All versions of simple-wordpress-cms with dependencies
PHP Build Version
Package Version
The package pammel/simple-wordpress-cms contains the following files
Loading the files please wait ....