OJS Bridge allows any PHP application to interface with an Open Journal Systems (OJS) application.
- 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
- MySQL 5.7.22
- Apache 2.4.29 (Ubuntu)
Usage (Derived from mains_controller.php)
// Include the library
require_once(dirname(__FILE__) . '/libraries/ojs-bridge/ojs_bridge.inc.php');
// It will automatically call 'startOnce', then this function and finally, 'endOnce'
OJSBridge::Instance()->doOnce(dirname(__FILE__) . '/path/to/OJS/directory', function($application){
// ...
});
// Start the OJS related operations
OJSBridge::Instance()->startOnce('/path/to/OJS/directory');
// ...
// End the OJS related operations
OJSBridge::Instance()->endOnce();