Skip to content

Commit

Permalink
replace greensight with ensi
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Oct 5, 2021
1 parent 2c368a7 commit bfa82ae
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) greensight <nekrasov@greensight.ru>
Copyright (c) ensi <mail@greensight.ru>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ This packages allows you to describe Kafka producers and consumers in config/kaf
You can install the package via composer:

```bash
composer require greensight/laravel-phprdkafka
composer require ensi/laravel-phprdkafka
```

Publish the config file with:
```bash
php artisan vendor:publish --provider="Greensight\LaravelPhpRdKafka\LaravelPhpRdKafkaServiceProvider" --tag="kafka-config"
php artisan vendor:publish --provider="Ensi\LaravelPhpRdKafka\LaravelPhpRdKafkaServiceProvider" --tag="kafka-config"
```

Now go to `config/kafka.php` and configure your producers and consumers there.
Expand All @@ -28,7 +28,7 @@ Producer example:

$producer = \Kafka::producer('producer-name'); // returns a configured RdKafka\Producer singleton.
// or $producer = \Kafka::producer(); if you want to get the default producer.
// or $producer = $kafkaManager->producer(); where $kafkaManager is an instance of Greensight\LaravelPhpRdKafka\KafkaManager resolved from the service container.
// or $producer = $kafkaManager->producer(); where $kafkaManager is an instance of Ensi\LaravelPhpRdKafka\KafkaManager resolved from the service container.

// now you can implement any producer logic e.g:

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "greensight/laravel-phprdkafka",
"name": "ensi/laravel-phprdkafka",
"description": "Bridge package between Laravel and php-rdkafka",
"keywords": [
"greensight",
"ensi",
"laravel"
],
"homepage": "https://github.com/greensight/laravel-phprdkafka",
"homepage": "https://github.com/ensi-platform/laravel-phprdkafka",
"license": "MIT",
"authors": [
{
Expand All @@ -29,12 +29,12 @@
},
"autoload": {
"psr-4": {
"Greensight\\LaravelPhpRdKafka\\": "src"
"Ensi\\LaravelPhpRdKafka\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Greensight\\LaravelPhpRdKafka\\Tests\\": "tests"
"Ensi\\LaravelPhpRdKafka\\Tests\\": "tests"
}
},
"scripts": {
Expand All @@ -48,10 +48,10 @@
"extra": {
"laravel": {
"providers": [
"Greensight\\LaravelPhpRdKafka\\LaravelPhpRdKafkaServiceProvider"
"Ensi\\LaravelPhpRdKafka\\LaravelPhpRdKafkaServiceProvider"
],
"aliases": {
"Kafka": "Greensight\\LaravelPhpRdKafka\\KafkaFacade"
"Kafka": "Ensi\\LaravelPhpRdKafka\\KafkaFacade"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
verbose="true"
>
<testsuites>
<testsuite name="Greensight Test Suite">
<testsuite name="Ensi Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Greensight\LaravelPhpRdKafka;
namespace Ensi\LaravelPhpRdKafka;

class Helpers
{
Expand Down
4 changes: 2 additions & 2 deletions src/KafkaFacade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Greensight\LaravelPhpRdKafka;
namespace Ensi\LaravelPhpRdKafka;

use Illuminate\Support\Facades\Facade;

/**
* @see \Greensight\LaravelPhpRdKafka\KafkaManager
* @see \Ensi\LaravelPhpRdKafka\KafkaManager
*/
class KafkaFacade extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/KafkaManager.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Greensight\LaravelPhpRdKafka;
namespace Ensi\LaravelPhpRdKafka;

use Illuminate\Support\Arr;
use InvalidArgumentException;
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelPhpRdKafkaServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Greensight\LaravelPhpRdKafka;
namespace Ensi\LaravelPhpRdKafka;

use Illuminate\Support\ServiceProvider;

Expand Down
2 changes: 1 addition & 1 deletion tests/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Greensight\LaravelPhpRdKafka\Tests;
namespace Ensi\LaravelPhpRdKafka\Tests;

class ExampleTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Greensight\LaravelPhpRdKafka\Tests;
namespace Ensi\LaravelPhpRdKafka\Tests;

use Orchestra\Testbench\TestCase as Orchestra;

Expand Down

0 comments on commit bfa82ae

Please sign in to comment.