I am implementing the functionality for print the invoice, for that i have using the Escpos Module, but when i run this there is no response.
if i print the php_sapi_name i got the "apache2handler" instead of "cli", i have the linux system. i don't know how to get "cli" in my webserver.
Can you please share your idea to resolve this problem
if(php_sapi_name() == 'cli') {// i got apache2handler
$connector = new FilePrintConnector("php://stdout");
} else {
throw new InvalidArgumentException("Argument passed to Escpos::__construct() must implement interface PrintConnector, null given.");
}