Skip to content

PHP library to parse Moodle course backup MBZ archives

Notifications You must be signed in to change notification settings

IET-OU/moodle-backup-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PHP library to parse Moodle course backup MBZ archives

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages