The standard installation does not work according to the instructions.
Error message occurs on a Linux with Apache2 and PHP 8.2
Fatal error: Uncaught Error: Class "Idoit\APIClient\API" not found in /var/www/test/idoit-api/api.php:12 Stack trace: #0 {main} thrown in /var/www/test/idoit-api/api.php on line 12
My Code
`use Idoit\APIClient\API;
use Idoit\APIClient\Idoit;
Hello everyone,
The standard installation does not work according to the instructions. Error message occurs on a Linux with Apache2 and PHP 8.2
Fatal error: Uncaught Error: Class "Idoit\APIClient\API" not found in /var/www/test/idoit-api/api.php:12 Stack trace: #0 {main} thrown in /var/www/test/idoit-api/api.php on line 12
My Code `use Idoit\APIClient\API; use Idoit\APIClient\Idoit;
require_once 'vendor/autoload.php';
$api = new API([ API::URL => 'https://demo.i-doit.com/src/jsonrpc.php', API::KEY => 'c1ia5q', API::USERNAME => 'admin', API::PASSWORD => 'admin' ]);
$request = new Idoit($api); $info = $request->readVersion();
var_dump($info);`
My environment: Debian 12, Apache 2.4.57-2 , PHP 8.2.7-1~deb12u1