Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
Description
We have instructions only for Composer users. In ticket https://supportal.couchbase.com/zendesk/ticket/59079 user doesn't use Composer and thus has problems with dependencies that should be installed via Composer.
We need to add another section to this page "Managing Couchbase dependencies without using Composer", where briefly describe that if the customer doesn't use Composer, they should load the classes to that written in PHP somehow. We provide simple autoloader script for that: https://github.com/couchbase/couchbase-php-client/blob/main/Couchbase/autoload.php
A customer need to download the PHP SDK files using git:
"git clone https://github.com/couchbase/couchbase-php-client.git ."
and then specified the full path to the ../Couchbase/autoload.php script using include_once directive. So the final code looks like this:
<?php
include_once "/full/path/to/PHP_SDK/Couchbase/autoload.php";
//Your PHP code utilizing PHP SDK goes here
?>
Find more details in Slack thread: https://couchbase.slack.com/archives/CC6GX1CJJ/p1710545468112509
https://couchbase.slack.com/archives/CC6GX1CJJ/p1710545597838539
And in the ticket: https://supportal.couchbase.com/zendesk/ticket/59079
Feel free to ping Ihor Pavlov in Slack (Support department) for more details.
Browser environment: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Reporter: Ihor Pavlov
E-mail: ihor.pavlov@couchbase.com