I'm trying to use this library: https://github.com/wunderio/docebo-php
However, its not found in Composer, despite it listing the Composer command on the page.
How can I call this library and create a new instance of the Docebo
class as shown in the example?
use Docebo\Docebo;
try {
$docebo = new Docebo('base_url', 'client_id', 'client_secret', 'username', 'password');
} catch (Exception $e) {
echo $e->getMessage();
}
I attempted to use this library by cloning the github repo, and creating the following:
docebo-php/src$ cat test.php
<?php
require_once("Docebo/Docebo.php");
use Docebo\Docebo;
try {
$docebo = new Docebo('base_url', 'client_id', 'client_secret', 'username', 'password');
} catch (Exception $e) {
echo $e->getMessage();
}
?>
This just results in:
$ php test.php
PHP Fatal error: Interface 'Docebo\DoceboInterface' not found in /var/www/www/htdocs/docebo-php/src/Docebo/Docebo.php on line 18