cacing69 / uxcel
Uxcel is a PHP library that can protect/unprotect some supported document for you.
v1.0.2
2020-07-12 14:20 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is auto-updated.
Last update: 2024-11-24 12:16:44 UTC
README
Uxcel is a PHP library that can protect/unprotect some supported document for you.
uxcel-php is heavily inspired by Uxcel on sourceforge UXCEL, where is written on Java.
Uxcel requires PHP >= 5.*
Table of Contents
Installation
composer require cacing69/uxcel
Usage
Autoloading
uxcel-php supports both PSR-0
as PSR-4
autoloaders.
<?php # When installed via composer require_once 'vendor/autoload.php';
You can also load Uxcel
shipped PSR-0
autoloader
<?php # Load Uxcel own autoloader require_once '/path/to/Uxcel/src/autoload.php';
alternatively, you can use any another PSR-4 compliant autoloader
Unprotect Excel
Use Uxcel\Factory
to create and initialize a uxcel instance.
<?php // use the factory to create a Uxcel instance $uxcel = new Uxcel\Factory(); // set target file to unprotect $target = "/path/to/file.xlsx"; $uxcel->setTarget($target); // set destination to save result $destination = "/path/to/destination"; $uxcel->setDestination($destination); // lets process unprotect excel $unprotect = $uxcel->unProtect(); // it will return uxcel instance
License
Uxcel-PHP is released under the MIT License. See the bundled LICENSE file for details.