flipninja / axcelerate-php
A PHP package to interact with the aXcelerate API
0.5.4
2024-10-24 08:25 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^7.0.1
- vlucas/phpdotenv: ^5.3
Requires (Dev)
- phpunit/phpunit: ^5.6
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);