PHP code example of roi-up-agency / php-kafka-schema-registry

1. Go to this page and download the library: Download roi-up-agency/php-kafka-schema-registry library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

roi-up-agency / php-kafka-schema-registry example snippets



composer 

//Example for producer enable idempotence
$this->setConfig(ProducerConfParam::ENABLE_IDEMPOTENCE, true);

//Example for topic change autocommin interval idempotence
$this->setConfig(TopicConfParam::AUTO_COMMIT_INTERVAL_MS, 500):



dd($this->getConfig()->dump());

//Or

dd($this->getTopicConf()->dump());