PHP code example of phpdevsr / phpspreadsheet-secure

1. Go to this page and download the library: Download phpdevsr/phpspreadsheet-secure 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/ */

    

phpdevsr / phpspreadsheet-secure example snippets




use PHPDevsr\Spreadsheet\Secure;

$test = new Secure();
$test->setFile('Book1.xlsx')
    ->setPassword('111')
    ->output('bb.xlsx');