A PHP interface component based on the open platform of Feieyun

The installation

composer require fendui/feieyun  -vvv

configuration

Please first register the account of Feieyun Open Platform and get the corresponding user name and API key

use

$username = 'username'; $u_key = 'u_key'; $feieyun = new \fendui\Feieyun($username, $u_key); $private_params = ['sn' => 'printer number ']; // Set public parameter apiname, eg: Open_printerAddlist $response_data = $feieyun->setApiName('Open_printerAddlist')->request($private_params); $response_data = $feieyun-> PrinterAddList ($private_params);

The defined interface class

  • Add the printer PrinterAddList
  • Print the order printMsg
  • Label machine prints the order PrintLabelMsg
  • Remove bulk printer printerDelList
  • Modify printer information printerEdit
  • Clear the queue to print delPrinterSqs
  • Query if the order was successfully printed QueryorderState
  • QueryOrderInfoByDate: query for order count for a specified printer on a given day
  • Gets the printer status QueryPrinterStatus