diff --git a/LICENSE.md b/LICENSE.md index edcb189..c4398f2 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) greensight +Copyright (c) ensi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ac166a2..4a1b64f 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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: diff --git a/composer.json b/composer.json index d9a1ddb..2756b6d 100644 --- a/composer.json +++ b/composer.json @@ -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": [ { @@ -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": { @@ -48,10 +48,10 @@ "extra": { "laravel": { "providers": [ - "Greensight\\LaravelPhpRdKafka\\LaravelPhpRdKafkaServiceProvider" + "Ensi\\LaravelPhpRdKafka\\LaravelPhpRdKafkaServiceProvider" ], "aliases": { - "Kafka": "Greensight\\LaravelPhpRdKafka\\KafkaFacade" + "Kafka": "Ensi\\LaravelPhpRdKafka\\KafkaFacade" } } }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9851697..8acb9bc 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -19,7 +19,7 @@ verbose="true" > - + tests diff --git a/src/Helpers.php b/src/Helpers.php index 2ec8f54..fb1f828 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -1,6 +1,6 @@