This is a fork of PHP-PM's HttpKernel adapter for integrating Drupal with PHP-PM (therefore, also with ReactPHP). See https://github.com/php-pm/php-pm, https://github.com/php-pm/php-pm-httpkernel.
The code is in pre-alpha -- very experimental. Last tested against drupal-8.0.2
.
-
Install PHP-PM as described in the project docs.
-
Replace the
vendor/php-pm/httpkernel-adapter
directory with this code. -
Apply patches to Drupal core: *
kentr-allow-repeated-setSitePath-in-DrupalKernel.patch
*stop_using-2505339-24.patch
-
Start php-pm with
sudo <absolute path to web root>/vendor/bin/ppm start <absolute path to web root> --bridge=httpKernel --bootstrap=PHPPM\\Bootstraps\\Drupal
. Example:sudo vendor/bin/ppm start /var/www/html/ --bridge=httpKernel --bootstrap=PHPPM\\Bootstraps\\Drupal