关于hyperf 安装phpkafka
1、容器基本镜像:php:7.4-apache-buster; 2、安装hyperf 所需的组件(redis,swoole等),先确保hyperf-2.0.23能够正常运行。 3、安装phpkafka所需的组件bcmath: 3.1、docker exec -ti 容器名 bash : docker-php-ext-install bcmath docker-php-ext-enable bcmath composer config -g repo.packagist composer https://mirrors.aliyun.com/composer composer require longlang/phpkafka 来源: oschina 链接: https://my.oschina.net/u/3137744/blog/4776073