Support for Magento / Adobe Commerce
Do you have any plans to support Magento/Adobe Commerce in the near future?
I haven't used Magento in years, so not in a near future, but contributions are welcome! It's also possible to sponsor us to do it :)
My first attempt of using frankenphp in a default Magento caused an app crash:
@allanmfx This seems to be comming from the usage of apache_request_headers() php function in vendor/laminas/laminas-http/src/PhpEnvironment/Request.php :
if (function_exists('apache_request_headers')) {
$apacheRequestHeaders = apache_request_headers();
if (! isset($this->serverParams['HTTP_AUTHORIZATION'])) {
if (isset($apacheRequestHeaders['Authorization'])) {
$this->serverParams->set('HTTP_AUTHORIZATION', $apacheRequestHeaders['Authorization']);
} elseif (isset($apacheRequestHeaders['authorization'])) {
$this->serverParams->set('HTTP_AUTHORIZATION', $apacheRequestHeaders['authorization']);
}
}
}
Avoiding the call to this function by commenting this will allow reaching frontend. Didn't go further into debugging for now.
@allanmfx you can follow our POC here : https://github.com/opengento/magento2-frankengento We are testing it during a Hackathon, and it shows good performance (50% faster TTFB)