1. When running: composer install, it prompted: enqueue/rdkafka 0.10.19 requires ext-rdkafka -> it is missing from your system. Install or enable PHP’s rdkafka extension. See Figure 1.

PS E:\wwwroot\object> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- enqueue/rdkafka is locked to version 0.10.19 and an update of this package was not requested.
- enqueue/rdkafka 0.10.19 requires ext-rdkafka ^4.0|^5.0|^6.0 -> it is missing from your system. Install or enable PHP's rdkafka extension.
To enable extensions, verify that they are enabled in your .ini files:
- C:\php-7.4.27\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-rdkafka` to temporarily ignore these required extensions.
2. I decided to enable PHP’s rdkafka extension. I opened https://pecl.php.net/package/rdkafka/6.0.1/windows and downloaded 7.4 Thread Safe (TS) x64. After extracting php_rdkafka-6.0.1-7.4-ts-vc15-x64, I copied php_rdkafka.dll to: C:\php-7.4.27\ext\php_rdkafka.dll. Then I edited php.ini and added extension=rdkafka
3. When restarting PHP, an error occurred: PHP Warning: PHP Startup: Unable to load dynamic library ‘rdkafka’. See Figure 2.

PS C:\Users\Lenovo> php-cgi.exe -b 127.0.0.1:9000-c C:/php-7.4.27/php.ini
PHP Warning: PHP Startup: Unable to load dynamic library 'rdkafka' (tried: C:/php-7.4.27/ext\rdkafka (鎵句笉鍒版寚瀹氱殑妯″潡銆?, C:/php-7.4.27/ext\php_rdkafka.dll (鎵句 笉鍒版寚瀹氱殑妯″潡銷?) in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'rdkafka' (tried: C:/php-7.4.27/ext\rdkafka (鎵句笉鍒版寚瀹氱殑妯″潡銆?, C:/php-7.4.27/ext\php_rdkafka.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in <b>Unknown</b> on line <b>0</b><br />
4. I referred to: https://arnaud.le-blanc.net/php-rdkafka-doc/phpdoc/rdkafka.installation.windows.html Installing the rdkafka extension on Windows. I placed librdkafka.dll in the PHP root directory (at the same level as php.exe), and placed the php_rdkfaka.dll file in the PHP extensions directory (default is “ext”). I copied librdkafka.dll to: C:\php-7.4.27\librdkafka.dll. When restarting PHP, the error no longer occurred.
5. I checked phpinfo and searched for: rdkafka. The PHP rdkafka extension was successfully enabled. See Figure 3.

6. When running: composer install, the prompt no longer appeared and it ran normally. See Figure 4.

