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 2w 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

Maturity25

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://avatars.githubusercontent.com/u/26254253?v=4)[Qurban Ali](/maintainers/mrshoikot)[@mrshoikot](https://github.com/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

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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