Download the PHP package saft/saft-wordpress without Composer
On this page you can find all versions of the php package saft/saft-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download saft/saft-wordpress
More information about saft/saft-wordpress
Files in saft/saft-wordpress
Package saft-wordpress
Short Description This plugin contains the Saft library (+ vendors) and provides a Wordpress integration. The Saft library is the aim to build a collection of components which helps anyone who wants to create applications by using Semantic Web technology.
License GPL-3.0
Informations about the package saft-wordpress
Saft.wordpress
This plugin contains the Saft library (+ vendors) and provides a Wordpress integration. The Saft library is the aim to build a collection of components which helps anyone who wants to create applications by using Semantic Web technology.
The purpose of this plugin, which can also be integrated using composer, is, to help you using Saft inside of WordPress. To do that, a database connection will be setup for instance.
Getting started
Installation
Manually
- Download the zip
- Extract it
- Rename the extracted folder from Saft.wordpress-master to Saft.wordpress
- Move it into your plugins folder of Wordpress (usually wp-content/plugins)
- Go into the admin area and activate that plugin
Composer
Require saft/saft-wordpress
via composer and it will set it up for you.
Setup
Running as WordPress plugin
If you use it as a standalone WordPress plugin, you have to activate the plugin in the admin area after copying it into wp-content/plugins
, to be able to use Saft classes inside your application.
Integrated via composer in another plugin
You need to include the Saft.wordpress.php
file into your plugin/project. It contains all integration-related code. You are free to copy the required code from it into another file of yours, make adaptions, ... but keep in mind, that further updated may change essential parts of the code, so you need to keep up. We think a simply require
of the mentioned file should be fine.
First steps
We assume you have a running Saft integration. Now, we want to show you a quick example, so that you can see, if your ARC2-store has access to the active WordPress database and you can query it.
The following method contains code to:
- create test graph
- add a triple to it
- query the graph
- var_dump query result
When you call foo
, it should do everything in the list.
The var_dump
should output something like the following:
Misc
Update Saft components
You can use Makefile
and call make update
on the terminal to force an erease of all Saft related files and a new download of the latest stable version of Saft plus related vendors. That is helpful for us as developers to update the plugin for you. But it may also be useful to you, if you have certain requirements how to update Saft.