forked from weiboad/kafka-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request weiboad#168 from lcobucci/make-phpcs-more-strict
Make PHPCS more strict
- Loading branch information
Showing
100 changed files
with
3,315 additions
and
1,938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
require '../vendor/autoload.php'; | ||
|
||
use \Kafka\Sasl\Scram; | ||
use Kafka\Protocol; | ||
use Kafka\Sasl\Scram; | ||
use Kafka\SocketSync; | ||
|
||
\Kafka\Protocol::init('1.0.0'); | ||
Protocol::init('1.0.0'); | ||
//$provider = new \Kafka\Sasl\Plain('nmred', '123456'); | ||
//$provider = new \Kafka\Sasl\Gssapi('/etc/security/keytabs/kafkaclient.keytab', 'kafka/[email protected]'); | ||
$provider = new Scram('alice', 'alice-secret', Scram::SCRAM_SHA_256); | ||
|
||
$socket = new \Kafka\SocketSync('127.0.0.1', '9092', null, $provider); | ||
$socket = new SocketSync('127.0.0.1', '9092', null, $provider); | ||
$socket->connect(); | ||
|
||
$data = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.