PHPackages                             inthere/csv-security-formatter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. inthere/csv-security-formatter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

inthere/csv-security-formatter
==============================

Formatter for thephpleague/csv package to increase security for csv exports with user generated content

1.0.0(8y ago)0571PHP

Since Oct 11Pushed 8y ago3 watchersCompare

[ Source](https://github.com/InThere/csv-security-formatter)[ Packagist](https://packagist.org/packages/inthere/csv-security-formatter)[ RSS](/packages/inthere-csv-security-formatter/feed)WikiDiscussions develop Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

csv-security-formatter
======================

[](#csv-security-formatter)

Formatter for [league/csv](http://csv.thephpleague.com/) package to increase security for csv exports with user generated content. For more information about the security risks of user generated content in csv exports, please read .

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

[](#installation)

You can install the package via composer:

`composer require inthere/csv-security-formatter`

Usage
-----

[](#usage)

Start the formatter. The formatter accept a boolean as parameter, provide `false` when you want to remove the formula instead of escaping.

```
$csvSecurityFormatter = new \InThere\CsvSecurityFormatter\CsvSecurityFormatter();
```

Provide the formula to the writer.

```
$writer = Writer::createFromFileObject(new SplTempFileObject());
$writer->addFormatter($csvSecurityFormatter);
$writer->insertOne(['=2*5', 'foo', 'bar']);
```

Create the csv.

```
$writer->__toString();
```

Tests
-----

[](#tests)

`$ vendor/bin/phpunit`

Contributors
------------

[](#contributors)

Contributions are welcome. We accept contributions via pull requests on Github.

License
-------

[](#license)

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

About InThere
-------------

[](#about-inthere)

InThere - "The training Through Gaming Company" - speeds up training your team and change processes by providing a micro-training concept based on serious games.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd36feb54c17646b5de4b530863e543c378aba5854108be06657e7a515e1572e?d=identicon)[InThere](/maintainers/InThere)

---

Top Contributors

[![dvdheiden](https://avatars.githubusercontent.com/u/90568118?v=4)](https://github.com/dvdheiden "dvdheiden (2 commits)")

---

Tags

csv-exportphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inthere-csv-security-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/inthere-csv-security-formatter/health.svg)](https://phpackages.com/packages/inthere-csv-security-formatter)
```

###  Alternatives

[phayes/geophp

GeoPHP is a open-source native PHP library for doing geometry operations. It is written entirely in PHP and can therefore run on shared hosts. It can read and write a wide variety of formats: WKT (including EWKT), WKB (including EWKB), GeoJSON, KML, GPX, GeoRSS). It works with all Simple-Feature geometries (Point, LineString, Polygon, GeometryCollection etc.) and can be used to get centroids, bounding-boxes, area, and a wide variety of other useful information.

87510.1M20](/packages/phayes-geophp)[jenssegers/optimus

Id obfuscation based on Knuth's integer hash method

1.3k4.8M27](/packages/jenssegers-optimus)[workos/workos-php

WorkOS PHP Library

392.4M5](/packages/workos-workos-php)[php-tui/term

comprehensive low level terminal control

45757.7k1](/packages/php-tui-term)[rkr/wildcards

A simple wildcard matcher

1418.3k](/packages/rkr-wildcards)

PHPackages © 2026

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