Closed lexcorp closed 3 years ago
PHP Fatal error: Uncaught Error: Class 'ridvanaltun\Guacamole\Guacamole' not found in /var/www/html/guacamole-php-sdk/test.php:9\nStack trace:\n#0 {main}\n thrown in /var/www/html/guacamole-php-sdk/test.php on line 9
Please more careful of the installation in the readme file. You can't use the library in directly if you use source files.
hi i have same issue, i just do a composer require ridvanaltun/guacamole as README Usage says..(not git clone) then create a simple php file calle index.php with this content (for run in CLI)
wha do you mean with "You can't use the library in directly if you use source files" ? what am I doing wrong?
thanks!
<?php
use ridvanaltun\Guacamole\Guacamole;
$host = 'https://myremote.host';
$username = 'guacadmin';
$password = '1234512345';
$server = new Guacamole($host, $username, $password, [
'timeout' => 5,
'verify' => false, // don't verify ssl
]);
var_dump ($server);
ragnarok@ragnarok:/tmp/tt$ tree .
.
├── composer.json
├── composer.lock
├── composer.phar
├── index.php
└── vendor
├── autoload.php
├── composer
│ ├── autoload_classmap.php
│ ├── autoload_files.php
│ ├── autoload_namespaces.php
│ ├── autoload_psr4.php
│ ├── autoload_real.php
│ ├── autoload_static.php
│ ├── ClassLoader.php
│ ├── installed.json
│ ├── installed.php
│ ├── InstalledVersions.php
│ ├── LICENSE
│ └── platform_check.php
├── guzzlehttp
│ ├── guzzle
│ │ ├── CHANGELOG.md
│ │ ├── composer.json
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── src
│ │ │ ├── BodySummarizerInterface.php
│ │ │ ├── BodySummarizer.php
│ │ │ ├── ClientInterface.php
│ │ │ ├── Client.php
│ │ │ ├── ClientTrait.php
│ │ │ ├── Cookie
│ │ │ │ ├── CookieJarInterface.php
│ │ │ │ ├── CookieJar.php
│ │ │ │ ├── FileCookieJar.php
│ │ │ │ ├── SessionCookieJar.php
│ │ │ │ └── SetCookie.php
│ │ │ ├── Exception
│ │ │ │ ├── BadResponseException.php
│ │ │ │ ├── ClientException.php
│ │ │ │ ├── ConnectException.php
│ │ │ │ ├── GuzzleException.php
│ │ │ │ ├── InvalidArgumentException.php
│ │ │ │ ├── RequestException.php
│ │ │ │ ├── ServerException.php
│ │ │ │ ├── TooManyRedirectsException.php
│ │ │ │ └── TransferException.php
│ │ │ ├── functions_include.php
│ │ │ ├── functions.php
│ │ │ ├── Handler
│ │ │ │ ├── CurlFactoryInterface.php
│ │ │ │ ├── CurlFactory.php
│ │ │ │ ├── CurlHandler.php
│ │ │ │ ├── CurlMultiHandler.php
│ │ │ │ ├── EasyHandle.php
│ │ │ │ ├── HeaderProcessor.php
│ │ │ │ ├── MockHandler.php
│ │ │ │ ├── Proxy.php
│ │ │ │ └── StreamHandler.php
│ │ │ ├── HandlerStack.php
│ │ │ ├── MessageFormatterInterface.php
│ │ │ ├── MessageFormatter.php
│ │ │ ├── Middleware.php
│ │ │ ├── Pool.php
│ │ │ ├── PrepareBodyMiddleware.php
│ │ │ ├── RedirectMiddleware.php
│ │ │ ├── RequestOptions.php
│ │ │ ├── RetryMiddleware.php
│ │ │ ├── TransferStats.php
│ │ │ └── Utils.php
│ │ └── UPGRADING.md
│ ├── promises
│ │ ├── CHANGELOG.md
│ │ ├── composer.json
│ │ ├── LICENSE
│ │ ├── README.md
│ │ └── src
│ │ ├── AggregateException.php
│ │ ├── CancellationException.php
│ │ ├── Coroutine.php
│ │ ├── Create.php
│ │ ├── Each.php
│ │ ├── EachPromise.php
│ │ ├── FulfilledPromise.php
│ │ ├── Is.php
│ │ ├── PromiseInterface.php
│ │ ├── Promise.php
│ │ ├── PromisorInterface.php
│ │ ├── RejectedPromise.php
│ │ ├── RejectionException.php
│ │ ├── TaskQueueInterface.php
│ │ ├── TaskQueue.php
│ │ └── Utils.php
│ └── psr7
│ ├── CHANGELOG.md
│ ├── composer.json
│ ├── LICENSE
│ ├── README.md
│ └── src
│ ├── AppendStream.php
│ ├── BufferStream.php
│ ├── CachingStream.php
│ ├── DroppingStream.php
│ ├── Exception
│ │ └── MalformedUriException.php
│ ├── FnStream.php
│ ├── Header.php
│ ├── HttpFactory.php
│ ├── InflateStream.php
│ ├── LazyOpenStream.php
│ ├── LimitStream.php
│ ├── Message.php
│ ├── MessageTrait.php
│ ├── MimeType.php
│ ├── MultipartStream.php
│ ├── NoSeekStream.php
│ ├── PumpStream.php
│ ├── Query.php
│ ├── Request.php
│ ├── Response.php
│ ├── Rfc7230.php
│ ├── ServerRequest.php
│ ├── StreamDecoratorTrait.php
│ ├── Stream.php
│ ├── StreamWrapper.php
│ ├── UploadedFile.php
│ ├── UriComparator.php
│ ├── UriNormalizer.php
│ ├── Uri.php
│ ├── UriResolver.php
│ └── Utils.php
├── psr
│ ├── http-client
│ │ ├── CHANGELOG.md
│ │ ├── composer.json
│ │ ├── LICENSE
│ │ ├── README.md
│ │ └── src
│ │ ├── ClientExceptionInterface.php
│ │ ├── ClientInterface.php
│ │ ├── NetworkExceptionInterface.php
│ │ └── RequestExceptionInterface.php
│ ├── http-factory
│ │ ├── composer.json
│ │ ├── LICENSE
│ │ ├── README.md
│ │ └── src
│ │ ├── RequestFactoryInterface.php
│ │ ├── ResponseFactoryInterface.php
│ │ ├── ServerRequestFactoryInterface.php
│ │ ├── StreamFactoryInterface.php
│ │ ├── UploadedFileFactoryInterface.php
│ │ └── UriFactoryInterface.php
│ └── http-message
│ ├── CHANGELOG.md
│ ├── composer.json
│ ├── docs
│ │ ├── PSR7-Interfaces.md
│ │ └── PSR7-Usage.md
│ ├── LICENSE
│ ├── README.md
│ └── src
│ ├── MessageInterface.php
│ ├── RequestInterface.php
│ ├── ResponseInterface.php
│ ├── ServerRequestInterface.php
│ ├── StreamInterface.php
│ ├── UploadedFileInterface.php
│ └── UriInterface.php
├── ralouphie
│ └── getallheaders
│ ├── composer.json
│ ├── LICENSE
│ ├── README.md
│ └── src
│ └── getallheaders.php
├── ridvanaltun
│ └── guacamole
│ ├── composer.json
│ ├── LICENSE
│ ├── README.md
│ └── src
│ ├── ConnectionGroup.php
│ ├── Connection.php
│ ├── Guacamole.php
│ ├── Operation.php
│ ├── UserGroup.php
│ └── User.php
└── symfony
└── deprecation-contracts
├── CHANGELOG.md
├── composer.json
├── function.php
├── LICENSE
└── README.md
29 directories, 166 files
PHP Fatal error: Uncaught Error: Class 'ridvanaltun\Guacamole\Guacamole' not found in /var/www/html/guacamole-php-sdk/test.php:9\nStack trace:\n#0 {main}\n thrown in /var/www/html/guacamole-php-sdk/test.php on line 9