Download the PHP package kucoin/kucoin-universal-sdk without Composer

On this page you can find all versions of the php package kucoin/kucoin-universal-sdk. 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 kucoin-universal-sdk

PHP SDK Documentation

License Badge
Language

Welcome to the PHP implementation of the KuCoin Universal SDK. This SDK is built based on KuCoin API specifications to provide a comprehensive and optimized interface for interacting with the KuCoin platform.

Note
This PHP SDK is maintained in two repositories:

For an overview of the project and SDKs in other languages, refer to the Main README.

📦 Installation

Latest Version: 0.1.3-alpha

Note: This SDK is currently in the Alpha phase. We are actively iterating and improving its features, stability, and documentation. Feedback and contributions are highly encouraged to help us refine the SDK.

Install the SDK using composer:

📖 Getting Started

Here's a quick example to get you started with the SDK in PHP.

📚 Documentation

Official Documentation: KuCoin API Docs

📂 Examples

Explore more examples in the example/ directory for advanced usage.

📋 Changelog

For a detailed list of changes, see the Changelog.

📌 Special Notes on APIs

This section provides specific considerations and recommendations for using the REST and WebSocket APIs.

REST API Notes

Client Features


WebSocket API Notes

Client Features

Threading and Callbacks

Data and Message Handling

📑 Parameter Descriptions

This section provides details about the configurable parameters for both HTTP and WebSocket client behavior.

HTTP Parameters

Parameter Type Description Default Value
keepAlive boolean Whether to enable persistent HTTP connections (Connection: keep-alive). true
maxConnections integer Maximum number of concurrent HTTP connections across all domains. Use 0 to disable the limit 100
totalTimeout float (seconds) Total timeout of the request in seconds. 30
maxRetries integer Maximum number of retry attempts upon failure. 3
retryDelay float (seconds) Delay in seconds between retry attempts. 2
useCoroutineHttp boolean Use coroutine-based HTTP transport (Saber + Swoole). Requires ext-swoole and swlib/saber. false
extraOptions array<string, mixed> Extra client-specific options for Guzzle or Saber. See official docs for details. []
interceptors InterceptorInterface[] Custom interceptors to hook into HTTP request/response lifecycle (e.g., logging, metrics). []

WebSocket Parameters

Parameter Type Description Default Value
reconnect bool Whether to automatically reconnect when the WebSocket connection is lost. true
reconnectAttempts int Maximum number of reconnection attempts. Use -1 for unlimited retries. -1
reconnectInterval float (seconds) Time interval between reconnection attempts. 5.0
dialTimeout float (seconds) Timeout for establishing the WebSocket connection. 10.0
writeTimeout float (seconds) Timeout for sending messages over the WebSocket connection. 5.0
eventCallback callable\|null A user-defined callback function to handle WebSocket events.
Signature: function(string $eventType, string $eventMessage): void
null

📝 License

This project is licensed under the MIT License. For more details, see the LICENSE file.

📧 Contact Support

If you encounter any issues or have questions, feel free to reach out through:

⚠️ Disclaimer

By using this SDK, you acknowledge that you have read, understood, and agreed to this disclaimer.


All versions of kucoin-universal-sdk with dependencies

PHP Build Version
Package Version
Requires jms/serializer Version ^3.32
doctrine/annotations Version ^2.0
guzzlehttp/guzzle Version ^7.9
ratchet/pawl Version ^0.4.3
react/event-loop Version ^1.5
react/promise Version ^3.2
ext-curl Version *
php Version ^7.4 || ^8.0
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 kucoin/kucoin-universal-sdk contains the following files

Loading the files please wait ....