flipninja/axcelerate-php

A PHP package to interact with the aXcelerate API

0.5.4 2024-10-24 08:25 UTC

This package is not auto-updated.

Last update: 2024-11-13 02:27:07 UTC


README

A PHP package to interact with the aXcelerate API.

http://flip.ninja/ https://www.axcelerate.com.au/

Usage

<?php

use FlipNinja\Axcelerate\Axcelerate;
use FlipNinja\Axcelerate\Contacts\Enrolment;

$axcelerate = new Axcelerate($apiToken, $wsToken, 'https://stg.axcelerate.com.au/api/');

// Find a contact
$contact = $axcelerate->contacts()->find($user->id);

// Find a class/instance
$instance = $axcelerate->courses()->findInstance([
    "name" => "An instance name",
    "trainerContactID" => $teacher->id
]);

// Update a contact's competency status for a class/instance to complete
$contact->enrolmentForInstance($instance)->updateComptentecyStatus($competencyCode, Enrolment::COMPLETE);