PHP code example of nick322 / secure-spreadsheet

1. Go to this page and download the library: Download nick322/secure-spreadsheet library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nick322 / secure-spreadsheet example snippets




use Nick\SecureSpreadsheet\Encrypt;

$test = new Encrypt();
$test->input('Book1.xlsx')
    ->password('111')
    ->output('bb.xlsx');

$test = new Encrypt($nofile = true);
$output = $test->input($binaryData)
    ->password('111')
    ->output();