Skip to content

Commit 3eb31ea

Browse files
committed
save work
1 parent e49213a commit 3eb31ea

8 files changed

+114
-1
lines changed

content/about/_index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ draft: false
1010
[![License: BSD-3](https://img.shields.io/badge/License-BSD--3-green.svg)](https://github.com/php-kafka/php-kafka/blob/main/LICENSE)
1111

1212
This extension provides ways to interact with Apache Kafka.
13-
It uses [librdkafka](https://github.com/edenhill/librdkafka) for binding and was inspired by [php-rdkafka](https://github.com/arnaud-lb/php-rdkafka).
13+
You can find some examples for producer and consumer [here](https://github.com/php-kafka/php-kafka-examples/tree/main/src/ext-php-kafka)
14+
This extension uses [librdkafka](https://github.com/edenhill/librdkafka) for binding and was inspired by [php-rdkafka](https://github.com/arnaud-lb/php-rdkafka).

content/producer/__construct.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "__construct"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function __construct(Configuration $configuration) {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

content/producer/abortTransaction.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "abortTransaction"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function abortTransaction(int $timeoutMs): void {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

content/producer/beginTransaction.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "beginTransaction"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function beginTransaction(): void {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

content/producer/commitTransaction.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "commitTransaction"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function commitTransaction(int $timeoutMs): void {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

content/producer/flush.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "flush"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function flush(int $timeoutMs): int {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

content/producer/initTransactions.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "initTransactions"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function initTransactions(int $timeoutMs): void {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

content/producer/purge.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "purge"
3+
date: 2020-12-27T22:09:37+01:00
4+
draft: false
5+
---
6+
## Description
7+
```php
8+
public function purge(int $purgeFlags): int {}
9+
```
10+
Get a producer instance
11+
## Example
12+
```php
13+
$conf = Kafka\Configuration();
14+
$conf->set('metadata.broker.list', 'kafka:9092');
15+
$producer = new Kafka\Producer($conf);
16+
```

0 commit comments

Comments
 (0)