Skip to content

Commit

Permalink
Add simple sample
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjmiller committed Mar 10, 2014
1 parent 904bc79 commit 9d99699
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Third party libraries

# buildables
sample/vendor
sample/composer.lock

# bad.
.DS_Store
Expand Down
5 changes: 5 additions & 0 deletions sample/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"rusticisoftware/tincan": "~0.0"
}
}
13 changes: 13 additions & 0 deletions sample/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$loader = require 'vendor/autoload.php';

$lrs = new TinCan\RemoteLRS(
'http://cloud.scorm.com/tc/public',
'1.0.1',
'user',
'pass'
);
$response = $lrs->queryStatements(['limit' => 2]);
print_r($response);

0 comments on commit 9d99699

Please sign in to comment.