Skip to content

Commit 4b0840e

Browse files
committed
Replace greensight with ensi
1 parent 151a73c commit 4b0840e

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) greensight <nekrasov@greensight.ru>
3+
Copyright (c) ensi <nekrasov@ensi.ru>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# Laravel PHP Rdkafka Consumer
22

3-
Opiniated High Level consumer for [greensight/laravel-phprdkafka](https://github.com/greensight/laravel-php-rdkafka)
3+
Opiniated High Level consumer for [ensi/laravel-phprdkafka](https://github.com/ensi/laravel-php-rdkafka)
44

55
## Installation
66

7-
Firstly, you have to install and configure [greensight/laravel-phprdkafka](https://github.com/greensight/laravel-php-rdkafka)
7+
Firstly, you have to install and configure [ensi/laravel-phprdkafka](https://github.com/ensi/laravel-php-rdkafka)
88

99
Then,
1010
```bash
11-
composer require greensight/laravel-phprdkafka-consumer
11+
composer require ensi/laravel-phprdkafka-consumer
1212
```
1313

1414
Publish the config file with:
1515
```bash
16-
php artisan vendor:publish --provider="Greensight\LaravelPhpRdKafkaConsumer\LaravelPhpRdKafkaConsumerServiceProvider" --tag="kafka-consumer-config"
16+
php artisan vendor:publish --provider="Ensi\LaravelPhpRdKafkaConsumer\LaravelPhpRdKafkaConsumerServiceProvider" --tag="kafka-consumer-config"
1717
```
1818

1919
Now go to `config/kafka-consumer.php` and add processors there.
2020

2121
## Usage
2222

23-
The package provides `php artisan kafka:consume {topic} {consumer=default}` command that executes the first processor that matches given topic and consumer name. Consumer name is taken from greensight/laravel-phprdkafka config file.
23+
The package provides `php artisan kafka:consume {topic} {consumer=default}` command that executes the first processor that matches given topic and consumer name. Consumer name is taken from ensi/laravel-phprdkafka config file.
2424

2525
Processors in config have the following configuration options:
2626

@@ -35,7 +35,7 @@ Processors in config have the following configuration options:
3535

3636
/*
3737
| Optional, defaults to `null`.
38-
| Here you may specify which greensight/laravel-phprdkafka consumer should be handled by this processor.
38+
| Here you may specify which ensi/laravel-phprdkafka consumer should be handled by this processor.
3939
| Processor handles all consumers by default.
4040
*/
4141
'consumer' => 'default',

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"name": "greensight/laravel-phprdkafka-consumer",
2+
"name": "ensi/laravel-phprdkafka-consumer",
33
"description": "Opiniated High Level consumer for laravel-phprdkafka",
44
"keywords": [
5-
"greensight",
5+
"ensi",
66
"laravel",
77
"kafka"
88
],
9-
"homepage": "https://github.com/greensight/laravel-phprdkafka-consumer",
9+
"homepage": "https://github.com/ensi/laravel-phprdkafka-consumer",
1010
"license": "MIT",
1111
"authors": [
1212
{
1313
"name": "arrilot",
14-
"email": "nekrasov@greensight.ru",
14+
"email": "nekrasov@ensi.ru",
1515
"role": "Developer"
1616
}
1717
],
1818
"require": {
1919
"php": "^8.0",
2020
"ext-rdkafka": "*",
21-
"greensight/laravel-phprdkafka": "^0.1.4",
21+
"ensi/laravel-phprdkafka": "^0.1.4",
2222
"illuminate/support": "^7 || ^8"
2323
},
2424
"require-dev": {
@@ -30,12 +30,12 @@
3030
},
3131
"autoload": {
3232
"psr-4": {
33-
"Greensight\\LaravelPhpRdKafkaConsumer\\": "src"
33+
"Ensi\\LaravelPhpRdKafkaConsumer\\": "src"
3434
}
3535
},
3636
"autoload-dev": {
3737
"psr-4": {
38-
"Greensight\\LaravelPhpRdKafkaConsumer\\Tests\\": "tests"
38+
"Ensi\\LaravelPhpRdKafkaConsumer\\Tests\\": "tests"
3939
}
4040
},
4141
"scripts": {
@@ -48,7 +48,7 @@
4848
"extra": {
4949
"laravel": {
5050
"providers": [
51-
"Greensight\\LaravelPhpRdKafkaConsumer\\LaravelPhpRdKafkaConsumerServiceProvider"
51+
"Ensi\\LaravelPhpRdKafkaConsumer\\LaravelPhpRdKafkaConsumerServiceProvider"
5252
]
5353
}
5454
},

config/kafka-consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/*
1414
| Optional, defaults to `null`.
15-
| Here you may specify which greensight/laravel-phprdkafka consumer should be handled by this processor.
15+
| Here you may specify which ensi/laravel-phprdkafka consumer should be handled by this processor.
1616
| Processor handles all consumers by default.
1717
*/
1818
'consumer' => 'default',

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
verbose="true"
2020
>
2121
<testsuites>
22-
<testsuite name="Greensight Test Suite">
22+
<testsuite name="Ensi Test Suite">
2323
<directory>tests</directory>
2424
</testsuite>
2525
</testsuites>

src/Commands/KafkaConsumeCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Greensight\LaravelPhpRdKafkaConsumer\Commands;
3+
namespace Ensi\LaravelPhpRdKafkaConsumer\Commands;
44

5-
use Greensight\LaravelPhpRdKafkaConsumer\HighLevelConsumer;
5+
use Ensi\LaravelPhpRdKafkaConsumer\HighLevelConsumer;
66
use Throwable;
77
use Illuminate\Console\Command;
88

src/Exceptions/KafkaConsumerException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Greensight\LaravelPhpRdKafkaConsumer\Exceptions;
3+
namespace Ensi\LaravelPhpRdKafkaConsumer\Exceptions;
44

55
use Exception;
66

src/HighLevelConsumer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Greensight\LaravelPhpRdKafkaConsumer;
3+
namespace Ensi\LaravelPhpRdKafkaConsumer;
44

5-
use Greensight\LaravelPhpRdKafka\KafkaManager;
6-
use Greensight\LaravelPhpRdKafkaConsumer\Exceptions\KafkaConsumerException;
5+
use Ensi\LaravelPhpRdKafka\KafkaManager;
6+
use Ensi\LaravelPhpRdKafkaConsumer\Exceptions\KafkaConsumerException;
77
use RdKafka\Exception as RdKafkaException;
88
use RdKafka\KafkaConsumer;
99
use RdKafka\Message;

src/LaravelPhpRdKafkaConsumerServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Greensight\LaravelPhpRdKafkaConsumer;
3+
namespace Ensi\LaravelPhpRdKafkaConsumer;
44

5-
use Greensight\LaravelPhpRdKafkaConsumer\Commands\KafkaConsumeCommand;
5+
use Ensi\LaravelPhpRdKafkaConsumer\Commands\KafkaConsumeCommand;
66
use Illuminate\Support\ServiceProvider;
77

88
class LaravelPhpRdKafkaConsumerServiceProvider extends ServiceProvider

tests/ExampleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Greensight\LaravelPhpRdKafkaConsumer\Tests;
3+
namespace Ensi\LaravelPhpRdKafkaConsumer\Tests;
44

55
class ExampleTest extends TestCase
66
{

0 commit comments

Comments
 (0)