添加phpoffic

This commit is contained in:
巴掌 committed 2018-11-01 08:27:38 +08:00
1 parent 8c1fbfd00a
commit 4bc2bfa35a
627 files changed
+169749 -4

No files matched your search

@@ -0,0 +1,12 @@
<?php
require __DIR__ . '/../Header.php';
$spreadsheet = require __DIR__ . '/../templates/sampleSpreadsheet.php';
// Set password against the spreadsheet file
$spreadsheet->getSecurity()->setLockWindows(true);
$spreadsheet->getSecurity()->setLockStructure(true);
$spreadsheet->getSecurity()->setWorkbookPassword('secret');
// Save
$helper->write($spreadsheet, __FILE__);