-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (25 loc) · 723 Bytes
/
index.php
File metadata and controls
32 lines (25 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require 'vendor/autoload.php';
use Nick\SecureSpreadsheet\Encrypt;
// output file
$test = new Encrypt;
$test->input('Book1.xlsx')
->password('111')
->output('bb2.xlsx');
// output file with nofile
$test = new Encrypt(true);
$out = $test->input('Book1.xlsx')
->password('111')
->output();
// output file with nofile and set temp path folder
$test = new Encrypt(true);
$out = $test->input('Book1.xlsx')
->setTempPathFolder(__DIR__.DIRECTORY_SEPARATOR.'tmp')
->password('111')
->output();
// output file with set temp path folder
$test = new Encrypt;
$test->input('Book1.xlsx')
->setTempPathFolder(__DIR__.DIRECTORY_SEPARATOR.'tmp')
->password('111')
->output('bb4.xlsx');