Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.89 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.89 KB

Build status: Travis-CI

IET-OU / moodle-backup-parser

A PHP library to parse files within a Moodle course backup MBZ archive. Generate static pages compatible with October.

NOTE: this is not a plugin for Moodle! It is a standalone library.

Status

License — to be confirmed!

This library is a work-in-progress – though with working unit tests!

Initial limitations:

Installation

Install and test using Git and Composer,

    git clone https://github.com/IET-OU/moodle-backup-parser
    composer install
    composer test

Example

<?php
    require_once './vendor/autoload.php';

    $parser = new \Nfreear\MoodleBackupParser\Parser();
    $dumper = new \Nfreear\MoodleBackupParser\StaticPages();

    $result = $parser->parse('./backup');

    $result = $dumper->putContents('./static_pages', $parser->getPages());

    printf("End. Parsed:  %s\n", $parser->getMetaData()->name);

© 2016 The Open University (Institute of Educational Technology).