PHP code example of cthomas87 / scorm-cloud-laravel
1. Go to this page and download the library: Download cthomas87/scorm-cloud-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
return [
/**
* The scorm engine service url.
*
* This attribute is a relic of a previous Rustici ScormCloud product
* iteration. It will most likely not need to be overriden. But its
* there for instances such as when HTTPS cannot be supported, etc.
*/
'url' => env('SCORMCLOUD_URL', 'https://cloud.scorm.com/EngineWebServices'),
/**
* The application id
*
* Required
*/
'app_id' => env('SCORMCLOUD_APPID', ''),
/**
* Any secret key associated with the app id
*
* Required
*/
'key' => env('SCORMCLOUD_KEY', ''),
/**
* The organization name.
*
* This will be used to create an origin string which is useful
* for debugging on the SCORM Cloud developers’ side
*
* optional
*/
'organization' => env('SCORMCLOUD_ORGANIZATION', 'scl'),
/**
* The app name.
*
* This will be used to create an origin string which is useful
* for debugging on the SCORM Cloud developers’ side
*
* optional
*/
'app_name' => env('SCORMCLOUD_APP_NAME', 'app'),
/**
* The version number.
*
* This will be used to create an origin string which is useful
* for debugging on the SCORM Cloud developers’ side
*
* optional
*/
'version' => env('SCORMCLOUD_VERSION','1.0')
];
scormcloud()
scormcloud()->getCourses()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.