kwn/php-rdkafka-stubs

Rdkafka extension stubs for your IDE

1.2.1 2018-11-11 19:36 UTC

README

Build Status Latest Stable Version

This package provides you a set of stubs for RdKafka extension. It currently supports version 3.0.0 but it should most likely work with previous versions (>= 0.9.1).

Installation

Add package to your composer.json

{
    "require-dev": {
        "kwn/php-rdkafka-stubs": "~1.1.0"
    }
}

And update your vendors

$ php composer.phar update kwn/php-rdkafka-stubs

Usage

Once package is installed, your IDE should simply discover all stubs automatically. Please notice, that kwn/php-rdkafka-stubs package has no autoloader configuration provided, so stubs classes are visible in your IDE, but don't clashes with rdkafka extension namespaces.