PHPackages                             mrshoikot/securecsv - 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. [Security](/categories/security)
4. /
5. mrshoikot/securecsv

ActiveLibrary[Security](/categories/security)

mrshoikot/securecsv
===================

A Laravel package that encrypts one or more columns from a table and export them into CSV

30[2 PRs](https://github.com/mrshoikot/securecsv/pulls)PHP

Since Aug 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mrshoikot/securecsv)[ Packagist](https://packagist.org/packages/mrshoikot/securecsv)[ RSS](/packages/mrshoikot-securecsv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

securecsv
=========

[](#securecsv)

A Laravel package that encrypts one or more columns from a table and export them into CSV.

Environment
-----------

[](#environment)

This package was tested using `php 8.1` and `laravel 10.0`

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

[](#installation)

You can install the package via composer:

```
composer require mrshoikot/securecsv:dev-main"
```

Usage
-----

[](#usage)

```
use Mrshoikot\EncryptAndExport\EncryptAndExport;

$exporter = new EncryptAndExport();
$exporter->setTable('TABLE_NAME');
$exporter->selectColumn('COLUMN_NAME');
$exporter->setPath(storage_path('exports')); // Default is /storage/app
$exporter->export();
```

The `selectColumn()` method also accepts array of column names.

To use the package from command line. You have to run

```
php artisan securecsv
```

A prompt will ask you from which table you want to export the data and also ask you to choose the columns you want to encrypt. You'll also be asked the path where the exported CSV file should be stored. The default is the root directory of your project.

Testing
-------

[](#testing)

```
composer test
```

TODO
----

[](#todo)

- Implement API usability along with CLI
- Write unit and more feature tests
- Enable and test support for older versions of PHP and Laravel
- Include option for having CSV header
- Add ability for selecting multiple column at once

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Qurban Ali](https://github.com/mrshoikot)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/75217e82ee58df31d82f4151f9c8b64fd7ac96dde79266d99c27d54deef9499b?d=identicon)[mrshoikot](/maintainers/mrshoikot)

---

Top Contributors

[![mrshoikot](https://avatars.githubusercontent.com/u/26254253?v=4)](https://github.com/mrshoikot "mrshoikot (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

### Embed Badge

![Health badge](/badges/mrshoikot-securecsv/health.svg)

```
[![Health](https://phpackages.com/badges/mrshoikot-securecsv/health.svg)](https://phpackages.com/packages/mrshoikot-securecsv)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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