PHPackages                             phpdevsr/phpspreadsheet-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. phpdevsr/phpspreadsheet-secure

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

phpdevsr/phpspreadsheet-secure
==============================

Secure your spreadsheet with Encrypt and Password Protect

2.0.1(1mo ago)14.9k↓48.8%1MITPHPPHP ^8.2 || ^8.3 || ^8.4 || ^8.5CI passing

Since Aug 13Pushed 1mo agoCompare

[ Source](https://github.com/PHPDevsr/PHPSpreadsheet-Secure)[ Packagist](https://packagist.org/packages/phpdevsr/phpspreadsheet-secure)[ Docs](https://github.com/PHPDevsr/PHPSpreadsheet-Secure)[ Fund](https://paypal.me/hexageek1337)[ GitHub Sponsors](https://github.com/ddevsr)[ RSS](/packages/phpdevsr-phpspreadsheet-secure/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (5)Dependencies (20)Versions (7)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

49

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% 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 ~147 days

Total

5

Last Release

55d ago

Major Versions

1.0.2 → 2.0.02026-03-02

PHP version history (2 changes)1.0.0PHP ^8.1 || ^8.2 || ^8.3

2.0.0PHP ^8.2 || ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/6590ade1ca574822a74973c73fcc4d8dd40cdb4412bf6fce2d1bb09e7969e582?d=identicon)[ddevsr](/maintainers/ddevsr)

---

Top Contributors

[![ddevsr](https://avatars.githubusercontent.com/u/97607754?v=4)](https://github.com/ddevsr "ddevsr (42 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/phpdevsr-phpspreadsheet-secure/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

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

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[nuovo/spreadsheet-reader

Spreadsheet reader library for Excel, OpenOffice and structured text files

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

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

2951.2M7](/packages/avadim-fast-excel-writer)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet Reader in PHP

104608.4k6](/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)

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

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

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

PHPackages © 2026

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