Skip to content

Commit 2a10d80

Browse files
init
0 parents  commit 2a10d80

File tree

9 files changed

+7763
-0
lines changed

9 files changed

+7763
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
KAFKA_QUEUE=your_kafka_topic
2+
KAFKA_BOOTSTRAP_SERVERS=localhost:9092
3+
KAFKA_SECURITY_PROTOCOL=SASL_SSL
4+
KAFKA_SASL_MECHANISMS=PLAIN
5+
KAFKA_SASL_USERNAME=your_kafka_username
6+
KAFKA_SASL_PASSWORD=your_kafka_password
7+
KAFKA_GROUP_ID=your_consumer_group

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor
2+
.env

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# kafka-queue
2+
3+
- https://arnaud-lb.github.io/php-rdkafka-doc/phpdoc/rdkafka.installation.html

composer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "soulaimaneyahyax/kafka-queue",
3+
"authors": [
4+
{
5+
"name": "Soulaimane Yahya",
6+
"email": "[email protected]"
7+
}
8+
],
9+
"autoload": {
10+
"psr-4": {
11+
"Kafka\\": "src/"
12+
}
13+
},
14+
"require": {
15+
"php": "^8.3",
16+
"orchestra/testbench": "^7.0",
17+
"squizlabs/php_codesniffer": "^3.7",
18+
"jobcloud/php-kafka-lib": "^2.0"
19+
},
20+
"minimum-stability": "dev",
21+
"prefer-stable": true,
22+
"scripts": {
23+
"php-fixer": [
24+
"./vendor/bin/phpcs src --standard=PSR2"
25+
]
26+
},
27+
"extra": {
28+
"laravel": {
29+
"providers": [
30+
"Kafka\\Providers\\KafkaServiceProvider"
31+
]
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)