Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation instructions don't work #34

Open
michael-schumann opened this issue Oct 28, 2023 · 0 comments
Open

Installation instructions don't work #34

michael-schumann opened this issue Oct 28, 2023 · 0 comments

Comments

@michael-schumann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant