1. 程式人生 > >composer 下載第三方外掛庫

composer 下載第三方外掛庫

下載生成二維碼的類

composer require bacon/bacon-qr-code
    $renderer = new \BaconQrCode\Renderer\Image\Png();
    $renderer->setHeight(256);
    $renderer->setWidth(256);

    $writer = new \BaconQrCode\Writer($renderer);
    //輸出到瀏覽器
   header('content-type: image/png');
   echo $writer->writeString('Hello World!'); 微信支付

https://github.com/pfinal/wechat/blob/master/demo/wxpay.php
匯出excel

composer require pfinal/excel