Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.
/ ojs-bridge Public archive

A bridge to use an OJS application and libraries in any PHP application

License

Notifications You must be signed in to change notification settings

luskaner/ojs-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OJS Bridge

Description

OJS Bridge allows any PHP application to interface with an Open Journal Systems (OJS) application.

Tested Compatibility

Main software

  • Open Journal Systems:
    • 2.4.8-3 with PHP 5.6.37 (5.6.37-1+ubuntu18.04.1+deb.sury.org+1)
    • 3.1.1.2 with PHP 7.2.7 (7.2.7-0ubuntu0.18.04.2)
  • Wordpress 4.9.7 ( ⚠️ only with runkit [recommended] or APD extensions):
    • WP MVC 1.3.16

Other software

  • MySQL 5.7.22
  • Apache 2.4.29 (Ubuntu)

Usage (Derived from mains_controller.php)

General

// Include the library
require_once(dirname(__FILE__) . '/libraries/ojs-bridge/ojs_bridge.inc.php');

Modern

// It will automatically call 'startOnce', then this function and finally, 'endOnce'
OJSBridge::Instance()->doOnce(dirname(__FILE__) . '/path/to/OJS/directory', function($application){
  // ...
});

Classic

// Start the OJS related operations
OJSBridge::Instance()->startOnce('/path/to/OJS/directory');
// ...
// End the OJS related operations
OJSBridge::Instance()->endOnce();

Samples

About

A bridge to use an OJS application and libraries in any PHP application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages