[SOLVED/DUPLICATE] Fatal Error Curl\Curl
hackthedev opened this issue · 1 comments
hackthedev commented
Fresh Install XAMPP and Composer with PHP on Windows.
I get the following error with the following code:
<?php
require __DIR__ . '/vendor/autoload.php'; // Autoload files using Composer autoload
use Proxmox\Request;
$configure = [
'hostname' => '127.0.0.1',
'username' => 'root',
'password' => 'dsfsfdf'
];
Request::Login($configure); // Login ..
// Request($path, array $params = null, $method="GET")
print_r( Request::Request('/nodes', null, 'GET') ); // List Nodes
?>
Fatal error: Uncaught Error: Class 'Curl\Curl' not found in E:\xampp\htdocs\proxmox\vendor\saleh7\proxmox-ve_php_api\src\Request.php:63 Stack trace: #0 E:\xampp\htdocs\proxmox\vendor\saleh7\proxmox-ve_php_api\src\Request.php(55): Proxmox\Request::ticket(false, false) #1 E:\xampp\htdocs\proxmox\index.php(11): Proxmox\Request::Login(Array) #2 {main} thrown in E:\xampp\htdocs\proxmox\vendor\saleh7\proxmox-ve_php_api\src\Request.php on line 63
hackthedev commented
Okay issue resolved by this issue. Didn't see it sorry