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.

FAQ

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 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

  1. Download the zip
  2. Extract it
  3. Rename the extracted folder from Saft.wordpress-master to Saft.wordpress
  4. Move it into your plugins folder of Wordpress (usually wp-content/plugins)
  5. 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:

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.


All versions of saft-wordpress with dependencies

PHP Build Version
Package Version
Requires saft/saft-skeleton Version *
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 saft/saft-wordpress contains the following files

Loading the files please wait ....