{"id":25081783,"url":"https://github.com/rapideinternet/laravel-queue-kafka","last_synced_at":"2025-04-04T20:12:25.710Z","repository":{"id":23523284,"uuid":"99249783","full_name":"rapideinternet/laravel-queue-kafka","owner":"rapideinternet","description":"Kafka Queue driver for Laravel","archived":false,"fork":false,"pushed_at":"2023-12-15T05:13:20.000Z","size":73,"stargazers_count":168,"open_issues_count":14,"forks_count":56,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-15T09:09:00.956Z","etag":null,"topics":["laravel","queue-drivers"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rapideinternet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-03T15:49:23.000Z","updated_at":"2024-06-21T20:24:04.159Z","dependencies_parsed_at":"2024-06-21T20:23:59.485Z","dependency_job_id":"52208464-7a5d-44db-b948-26a6e1694f5d","html_url":"https://github.com/rapideinternet/laravel-queue-kafka","commit_stats":{"total_commits":37,"total_committers":9,"mean_commits":4.111111111111111,"dds":"0.43243243243243246","last_synced_commit":"b8a7939da96e0e6d5dbf5bd59221e8f05bbb75e9"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapideinternet%2Flaravel-queue-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapideinternet%2Flaravel-queue-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapideinternet%2Flaravel-queue-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapideinternet%2Flaravel-queue-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rapideinternet","download_url":"https://codeload.github.com/rapideinternet/laravel-queue-kafka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242680,"owners_count":20907134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","queue-drivers"],"created_at":"2025-02-07T05:18:55.505Z","updated_at":"2025-04-04T20:12:25.691Z","avatar_url":"https://github.com/rapideinternet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kafka Queue driver for Laravel\n======================\n[![Latest Stable Version](https://poser.pugx.org/rapide/laravel-queue-kafka/v/stable?format=flat-square)](https://packagist.org/packages/rapide/laravel-queue-kafka)\n[![Build Status](https://travis-ci.org/rapideinternet/laravel-queue-kafka.svg?branch=master)](https://travis-ci.org/rapideinternet/laravel-queue-kafka)\n[![Total Downloads](https://poser.pugx.org/rapide/laravel-queue-kafka/downloads?format=flat-square)](https://packagist.org/packages/rapide/laravel-queue-kafka)\n[![StyleCI](https://styleci.io/repos/99249783/shield)](https://styleci.io/repos/99249783)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\n#### Installation\n\n1. Install [librdkafka c library](https://github.com/edenhill/librdkafka)\n\n    ```bash\n    $ cd /tmp\n    $ mkdir librdkafka\n    $ cd librdkafka\n    $ git clone https://github.com/edenhill/librdkafka.git .\n    $ ./configure\n    $ make\n    $ make install\n    ```\n2. Install the [php-rdkafka](https://github.com/arnaud-lb/php-rdkafka) PECL extension\n\n    ```bash\n    $ pecl install rdkafka\n    ```\n    \n3. a. Add the following to your php.ini file to enable the php-rdkafka extension\n    `extension=rdkafka.so`\n    \n   b. Check if rdkafka is installed  \n   __Note:__ If you want to run this on php-fpm restart your php-fpm first.\n   \n       php -i | grep rdkafka\n   \n   Your output should look something like this\n   \n       rdkafka\n       rdkafka support =\u003e enabled\n       librdkafka version (runtime) =\u003e 1.0.0-RC2\n       librdkafka version (build) =\u003e 0.11.4.0\n\n    \n4. Install this package via composer using:\n\n\t    composer require rapide/laravel-queue-kafka\n\n5. Add LaravelQueueKafkaServiceProvider to `providers` array in `config/app.php`:\n\n\t    Rapide\\LaravelQueueKafka\\LaravelQueueKafkaServiceProvider::class,\n\t\n   If you are using Lumen, put this in `bootstrap/app.php`\n    \n        $app-\u003eregister(Rapide\\LaravelQueueKafka\\LumenQueueKafkaServiceProvider::class);\n\n6. Add these properties to `.env` with proper values:\n\n\t\tQUEUE_DRIVER=kafka\n\n7. If you want to run a worker for a specific consumer group\n\n        export KAFKA_CONSUMER_GROUP_ID=\"group2\" \u0026\u0026 php artisan queue:work --sleep=3 --tries=3\n    \n    Explaination of consumergroups can be found in this article \n    http://blog.cloudera.com/blog/2018/05/scalability-of-kafka-messaging-using-consumer-groups/\n\n#### Usage\n\nOnce you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues\n\n#### Testing\n\nRun the tests with:\n\n``` bash\nvendor/bin/phpunit\n```\n\n#### Acknowledgement \n\nThis library is inspired by [laravel-queue-rabbitmq](https://github.com/vyuldashev/laravel-queue-rabbitmq) by vyuldashev.\nAnd the Kafka implementations by [Superbalist](https://github.com/Superbalist/php-pubsub-kafka) be sure to check those out. \n\n#### Contribution\n\nYou can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue.\n\n#### Supported versions of Laravel \n\nTested on: [5.4, 5.5, 5.6, 5.7]\n\n#### New version is underway\n\nA version for Laravel 6,7,8 is underway. \nAlso supporting the new RdKafka library\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapideinternet%2Flaravel-queue-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapideinternet%2Flaravel-queue-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapideinternet%2Flaravel-queue-kafka/lists"}