PHPackages                             php72devsr/php72spreadsheet-secure - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. php72devsr/php72spreadsheet-secure

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

php72devsr/php72spreadsheet-secure
==================================

Secure your spreadsheet with Encrypt and Password Protect

2.0.0(2mo ago)020MITPHPPHP ^7.2 || ^8.1 || ^8.2 || ^8.3

Since Apr 7Pushed 2mo agoCompare

[ Source](https://github.com/sinsolution/PHP7.2Spreadsheet-Secure)[ Packagist](https://packagist.org/packages/php72devsr/php72spreadsheet-secure)[ Docs](https://github.com/luizneves01/PHP7.2Spreadsheet-Secure)[ Fund](https://paypal.me/hexageek1337)[ GitHub Sponsors](https://github.com/ddevsr)[ RSS](/packages/php72devsr-php72spreadsheet-secure/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (10)Versions (6)Used By (0)

Secure Spreadsheet
==================

[](#secure-spreadsheet)

🔥 Secure your data exports - encrypt and password protect sensitive XLSX files

The [Office Open XML format](https://en.wikipedia.org/wiki/Office_Open_XML) provides a standard for encryption and password protection. Works with Excel, Numbers, and LibreOffice Calc.

[![PHPUnit](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/actions/workflows/test-phpunit.yml/badge.svg)](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/actions/workflows/test-phpunit.yml)[![PHPStan](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/actions/workflows/test-phpstan.yml/badge.svg)](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/actions/workflows/test-phpstan.yml)[![Coverage Status](https://camo.githubusercontent.com/102d7ed38777af28c41d7d95ef90889502a0cfb0f491b7d8e0e5e6add1938c2b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f50485044657673722f50485053707265616473686565742d5365637572652f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/PHPDevsr/PHPSpreadsheet-Secure?branch=develop)[![Downloads](https://camo.githubusercontent.com/65a4e5fb07469a7940edffdbabd7c2959aa2e04cf0ecd0b96061c5cf847d49b1/68747470733a2f2f706f7365722e707567782e6f72672f70687064657673722f70687073707265616473686565742d7365637572652f646f776e6c6f616473)](https://packagist.org/packages/phpdevsr/phpspreadsheet-secure)[![GitHub release (latest by date)](https://camo.githubusercontent.com/5c5aa4984bc393848b8de750deb9e7e0ac7062a6921e97ed9eb7c7e5c440ae32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f50485044657673722f50485053707265616473686565742d536563757265)](https://packagist.org/packages/phpdevsr/phpspreadsheet-secure)[![GitHub stars](https://camo.githubusercontent.com/b01e3b82727d9fbe880c2af01d1a037935acf3da40f000c1f8f54e366e063ea4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f50485044657673722f50485053707265616473686565742d536563757265)](https://packagist.org/packages/phpdevsr/phpspreadsheet-secure)[![GitHub license](https://camo.githubusercontent.com/b2e4cbf20b0639d3fc6f207a495e3b06d5d5c4ff20caaa4fad189d91a2b82849/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f50485044657673722f50485053707265616473686565742d536563757265)](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/blob/develop/LICENSE)[![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/pulls)

Installation
------------

[](#installation)

To install the package:

Run `composer require phpdevsr/phpspreadsheet-secure` to add the package to your project.

This will automatically install the package to your vendor folder.

Usage
-----

[](#usage)

```
require "vendor/autoload.php";

use PHPDevsr\Spreadsheet\Secure;

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

Contributing
------------

[](#contributing)

We **are** accepting contributions from the community! It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome.

Please read the [*Contributing to PHPDevsr*](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/blob/develop/contributing/README.md).

This repository has had thousands on contributions from people since its creation. This project would not be what it is without them.

[ ![](https://camo.githubusercontent.com/4663e17aa5574b7cf8a1c59537acabfa78bbb0cf40f47b1d634923c6cb8097f0/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d50485044657673722f50485053707265616473686565742d536563757265)](https://github.com/PHPDevsr/PHPSpreadsheet-Secure/graphs/contributors)Made with [contrib.rocks](https://contrib.rocks).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance87

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

63d ago

Major Versions

1.0.3 → 2.0.02026-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/17abf841a7c976f6fd7e13cf6bb94a445104206167d13f29d156a5d20a61ea8f?d=identicon)[lftn01](/maintainers/lftn01)

---

Top Contributors

[![ddevsr](https://avatars.githubusercontent.com/u/97607754?v=4)](https://github.com/ddevsr "ddevsr (25 commits)")[![luizneves01](https://avatars.githubusercontent.com/u/19174385?v=4)](https://github.com/luizneves01 "luizneves01 (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

encryptexcelxlsxlsxspreadsheetphpspreadsheetsecure

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php72devsr-php72spreadsheet-secure/health.svg)

```
[![Health](https://phpackages.com/badges/php72devsr-php72spreadsheet-secure/health.svg)](https://phpackages.com/packages/php72devsr-php72spreadsheet-secure)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k309.6M1.4k](/packages/phpoffice-phpspreadsheet)[nuovo/spreadsheet-reader

Spreadsheet reader library for Excel, OpenOffice and structured text files

671883.3k8](/packages/nuovo-spreadsheet-reader)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

3011.3M9](/packages/avadim-fast-excel-writer)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet and CSV Reader in PHP

105693.8k9](/packages/avadim-fast-excel-reader)[onurb/excel-bundle

Symfony Bundle to read or write Excel file (including pdf, xlsx, odt), using phpoffice/phpspreadsheet library (replacement of phpoffice/phpexcel, abandonned)

15333.4k](/packages/onurb-excel-bundle)[avadim/fast-excel-templator

Lightweight and very fast Excel Spreadsheet generator from XLSX-templates in PHP

20124.5k](/packages/avadim-fast-excel-templator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
