# BaseUtil **Repository Path**: frid/excelHelper ## Basic Information - **Project Name**: BaseUtil - **Description**: 一些平时用的帮助类 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-03-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #excelHelper #示例 #ExcelHelper示例 0, 'sheetName'=>'sheet1', 'titleName'=>[ 'title1','title2','title3' ], 'value'=>[ 'arr1','arr2', ], 'outName'=>'abc.xls' ]; ExcelHelper::getInstance()->init($options); ExcelHelper::getInstance()->outPutExcel(); #EmailHelper示例 'smtp.163.com', 'fromname' => 'TengJu', 'username' => '123465@163.com', 'password' => 'abcdef', 'subject' => '测试邮件', 'body' => $body, 'customer' => '789456@qq.com', 'title' => '尊敬的先生', 'file' => 'abc.pdf' ]; EmailHelper::getInstance()->send( $arr); ?> #WxApi示例 'wxa9204975c', 'appsecret' => '1c7912db4534a39' * ]; WxApi::getInstance()->init( $options ); if (!isset( $_GET['code'] )) { header( "location:https://open.weixin.qq.com/connect/oauth2/authorize?appid=" . WxApi::$appId . "&redirect_uri=http://" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] . "&response_type=code&scope=snsapi_base&state=1#wechat_redirect" ); } else { $CODE = $_GET['code']; $Info = WxApi::getInstance()->getUserInfo( $CODE ); } } ?>