Download the PHP package shibudb-org/shibudb-client-php without Composer

On this page you can find all versions of the php package shibudb-org/shibudb-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package shibudb-client-php

shibudb-client-php

ShibuDb client library for PHP

ShibuDb PHP Client

A comprehensive PHP client for ShibuDb database that supports authentication, key-value operations, vector similarity search, space management, and connection pooling. Compatible with PHP 5.6+.

Features

Installation

Prerequisites

  1. ShibuDb Server: Ensure the ShibuDb server is running

  2. PHP Requirements:
    • PHP 5.6 or higher
    • No external PHP extensions required (uses built-in stream_socket_client, json_encode, json_decode)

Setup

Composer (Recommended)

Then in your PHP code:

Manual Installation

  1. Copy the client file to your project:

  2. Include the client:

Quick Start

Basic Connection and Authentication

Convenience Function

Connection Pooling

Key-Value Operations

Vector Operations

API Reference

ShibuDbClient

Constructor

Authentication

Space Management

Key-Value Operations

Vector Operations

User Management (Admin Only)

Data Models

User Array

Exceptions

Examples

Complete Example

Error Handling

Advanced Usage

Running Examples

Simple Test

Comprehensive Examples

Connection Pooling Examples

Comprehensive Connection Pooling Tests

Connection Pooling

The ShibuDb client supports connection pooling for high-performance concurrent operations. Connection pooling provides:

Pool Configuration

Using Connection Pools

Pool Statistics

Error Handling with Pools

Engine Types

Key-Value Engine

Vector Engine

Security

PHP 5.6 Compatibility

This client is designed for PHP 5.6+ compatibility:

Troubleshooting

Common Issues

  1. Connection Failed

    • Ensure ShibuDb server is running: sudo shibudb start 4444
    • Check server port and host settings
    • Verify firewall settings
    • Check PHP error logs for connection errors
  2. Authentication Failed

    • Verify username and password
    • Ensure user exists in the system
    • Check user permissions
  3. Space Not Found

    • Use listSpaces() to see available spaces
    • Create space before using: createSpace()
    • Use useSpace() to switch to a space
  4. Vector Dimension Mismatch

    • Ensure vector dimension matches space dimension
    • Check space creation parameters
    • Verify vector format (array of floats)
  5. JSON Parsing Errors
    • Check PHP version compatibility (PHP 5.6+)
    • Verify JSON response format from server
    • Check for special characters in data

Debug Mode

Enable PHP error reporting:

Running Tests

Tests mirror the Python client test structure:

Test File Description Server Required
simple_test.php Basic key-value and vector operations Yes
pool_test.php Connection pooling basics Yes
comprehensive_pool_test.php Full pool tests (stats, configs, errors) Yes
json_parsing_test.php JSON parsing with special chars, fallback No
special_chars_test.php Special character handling, encoding No

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure PHP 5.6+ compatibility
  5. Submit a pull request

License

This client is provided as-is for use with ShibuDb database.


All versions of shibudb-client-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shibudb-org/shibudb-client-php contains the following files

Loading the files please wait ...