Download the PHP
package iqnection/silverstripe-wordpress-integration without Composer
On this page you can find all versions of the php package
iqnection/silverstripe-wordpress-integration. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor iqnection Package silverstripe-wordpress-integration Short Description Provides an integration to use a WordPress blog with your SilverStripe Site License
BSD-3-Clause
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
Informations about the package silverstripe-wordpress-integration
Provides a simple integration to use a WordPress blog with your SilverStripe site
Install via Composer
Usage
Create a WordPress Redirect Page and set the URL directory (from root) for where the WordPress install lives
The site root .htaccess will be updated to allow requests to this directory
You can also retrieve posts from your WP blog to display on your SS pages
Posts will be cached so the RSS is not queried on every page request
When the URL for the page is requested, a cache of specified templates will be created, which can then be injected into your WordPress theme.
This provides the ability to utilize the same header and footer between platforms.
The template cache will be store at path/to/site/root/template-cache/{page-url}.json
The json consists of templates you cached, stored as base 64 strings.
In your WP theme, simple load this file, decode the JSON, then base64 decode the array values.
Configuration
You can add or remove elements to cache.
Set array key: value(s) for which templates to cache. Use the same key in your WordPress theme to access the rendered HTML
When teh templates are rendered, a template variable $ForCache is provided, incase you don't want certain elements to render, like forms.
Defaults
Default cached templates are
header: Includes/Header
footer: Includes/Footer
Adding templates to render
All versions of silverstripe-wordpress-integration with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package iqnection/silverstripe-wordpress-integration contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.