Download the PHP package cooper/canal-client without Composer
On this page you can find all versions of the php package cooper/canal-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cooper/canal-client
More information about cooper/canal-client
Files in cooper/canal-client
Download cooper/canal-client
More information about cooper/canal-client
Files in cooper/canal-client
Vendor cooper
Package canal-client
Short Description connect canal server via php client.
License MIT
Package canal-client
Short Description connect canal server via php client.
License MIT
Please rate this library. Is it a good library?
Informations about the package canal-client
Canal Client
中文文档
PHP client for Alibaba Canal — MySQL binlog incremental subscription and consumption middleware.
Forked from canal-php, with PHP 8.0+ and Swoole 5.0+ support.
Requirements
- PHP >= 8.0
- ext-sockets
- google/protobuf ^3.8
Optional:
- ext-swoole — for Swoole adapter
- clue/socket-raw — for Clue socket adapter
Installation
Adapter Types
| Type | Constant | Description |
|---|---|---|
| Native Socket | CanalClient::TYPE_SOCKET |
PHP native socket (ext-sockets) |
| Swoole | CanalClient::TYPE_SWOOLE |
Swoole coroutine client |
| Clue Socket | CanalClient::TYPE_SOCKET_CLUE |
clue/socket-raw library |
Usage
API
CanalConnectorFactory
createClient(int $clientType): BaseCanalConnector— Create a connector instance
BaseCanalConnector
connect(string $host, int $port, string $user, string $password, ...)— Connect to Canal serversubscribe(string $clientId, string $destination, string $filter)— Subscribe to binlog changesunSubscribe()— Unsubscribeget(int $size)— Get messages with auto ackgetWithoutAck(int $batchSize, int $timeout, int $unit)— Get messages without ackack(mixed $messageId)— Acknowledge messagerollback(int $batchId)— RollbackdisConnect()— Disconnect
Fmt
Fmt::println(Entry $entry)— Print binlog entry to stdout
Testing
License
MIT
All versions of canal-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-sockets Version *
clue/socket-raw Version ^1.4
google/protobuf Version ^3.8
swoole/ide-helper Version ^5.0
ext-sockets Version *
clue/socket-raw Version ^1.4
google/protobuf Version ^3.8
swoole/ide-helper Version ^5.0
The package cooper/canal-client contains the following files
Loading the files please wait ...