Download the PHP package oat-sa/extension-tao-sync without Composer

On this page you can find all versions of the php package oat-sa/extension-tao-sync. 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 extension-tao-sync

TAO Sync Extension

TAO Logo

GitHub GitHub release GitHub commit activity

The purpose of this extension is to synchronize a local and a remote server.

All types of data and results can be synchronized. All HTTP requests are required to be signed following the OAuth 2 standard, also are all data encrypted.

Important note: While this article uses American spelling, some of the command line instructions are in British spelling for historical reasons, e. g. synchronisation instead of synchronization!

Installation instructions

These instructions assume that you already have a TAO installation on your system. If you don't, go to package/tao and follow the installation instructions.

Add the extension to your TAO composer and to the autoloader:

Install the extension on the CLI from the project root:

Linux:

Windows:

As a system administrator you can also install it through the TAO Extension Manager:

Synchronization

Data synchronization

In preparation of a delivery execution, the synchronization process needs to fetch data objects of the following types from the central server:

Set the chunkSize parameter in the taoSync/syncService configuration to define the amount of data per request, $type refers to the list above, e. g. test-center

When a delivery is published it exports a sanpshot of a QTI test package. This snapshot will be used during synchronization.

Result synchronization

Once the Client Server has the delivery result, a script sends it to the Central Server. Only completed delivery executions will be sent, results will be submitted only once. When a delivery execution is sent, the synchronization history will be updated to log the action. You can set the deleteAfterSend parameter to true to delete results after the synchronization.

To configure the amount of data per request, use the chunkSize parameter in the taoSync/resultService configuration.

Execute the following command to synchronize the result:

Synchronizing all data and results

To synchronize data and results at the same time, use the following command:

OAuth credentials

Generating credentials to allow a user to connect to the platform

This command creates a consumer with OAuth credentials.

The output of this command will contain the following data:

Note: Add the -cmd flag to this command to execute it on the Client Server.

Importing OAuth credentials to Client Server

The following command will import the consumer you have created above into the Client Server. The arguments are the output from the previous command, $rootUrl is the domain name of the host server.

Scoping synchronization to a test center identifier

To be able to bind a synchronization to the organzition ID of a test center, the platform needs to register a test-center property. The SyncService has also to register new synchronizers to process by organisation id.

Note The test center organization id is http://www.taotesting.com/ontologies/synchro.rdf#organisationId_


All versions of extension-tao-sync with dependencies

PHP Build Version
Package Version
Requires oat-sa/oatbox-extension-installer Version ~1.1||dev-master
oat-sa/generis Version >=14.0.0
oat-sa/tao-core Version >=47.0.0
oat-sa/extension-tao-delivery Version >=15.0.0
oat-sa/extension-tao-delivery-rdf Version >=14.0.0
oat-sa/extension-tao-item Version >=11.0.0
oat-sa/extension-tao-oauth Version >=6.0.0
oat-sa/extension-tao-testcenter Version >=10.0.0
oat-sa/extension-tao-task-queue Version >=6.0.0
oat-sa/extension-tao-publishing Version >=6.0.0
oat-sa/extension-tao-clientdiag Version >=8.0.0
oat-sa/lib-generis-search Version 2.1.2
oat-sa/extension-tao-outcome Version >=13.0.0
oat-sa/extension-tao-itemqti Version >=27.0.0
oat-sa/extension-tao-testqti Version >=41.0.0
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 oat-sa/extension-tao-sync contains the following files

Loading the files please wait ....