https://github.com/totara/openbadges/blob/MDL-35073-openbadges/badges/utils/bakerlib.php
It should work independently of Moodle without any issues if you remove the first line:
defined('MOODLE_INTERNAL') || die();
We created this because we couldn't make use of the Mozilla baker since we need it to work without Javascript support. We'll add some extra comments to the library explaining how to use it soon.
We created this as part of our project to integrate open badges into Moodle - the code (currently in alpha) available here:
https://github.com/totara/openbadges
Simon
--
You received this message because you are subscribed to the Google Groups "Mozilla Open Badges Dev Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openbadges-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.