Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11977

Feedback on Full Installation of PHP SDK page | Couchbase Docs

    XMLWordPrintable

Details

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard.smedley Richard Smedley
            ihor.pavlov Ihor Pavlov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty