PHPackages                             sanix-darker/cisv - 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. sanix-darker/cisv

ActivePhp-ext[PDF &amp; Document Generation](/categories/documents)

sanix-darker/cisv
=================

High-performance CSV parser with SIMD optimizations (AVX-512/AVX2) for PHP - 10-50x faster than fgetcsv

v0.6.1(1mo ago)31MITPHPPHP &gt;=8.1CI passing

Since Mar 6Pushed 6d agoCompare

[ Source](https://github.com/Sanix-Darker/cisv-php)[ Packagist](https://packagist.org/packages/sanix-darker/cisv)[ Docs](https://github.com/Sanix-Darker/cisv-php)[ RSS](/packages/sanix-darker-cisv/feed)WikiDiscussions main Synced today

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

cisv-php
========

[](#cisv-php)

[![PHP Install](./assets/php-install.png)](./assets/php-install.png)

[![CI](https://github.com/Sanix-Darker/cisv-php/actions/workflows/ci.yml/badge.svg)](https://github.com/Sanix-Darker/cisv-php/actions/workflows/ci.yml)

[![Packagist Version](https://camo.githubusercontent.com/ccf8edcda9c8428dd82802d797f9acf105b499d36cb95730b3ff973a29b690d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e69782d6461726b65722f636973762e737667)](https://packagist.org/packages/sanix-darker/cisv)

[![License](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)

PHP extension distribution for CISV with SIMD-accelerated CSV parsing via native C code.

FEATURES
--------

[](#features)

- Native extension parser for PHP
- Full parse API (`parseFile`, `parseString`)
- Row-by-row iterator API (`openIterator` / `fetchRow`)
- Fast row counting (`CisvParser::countRows`)
- Better memory behavior with iterator mode on very large files

INSTALLATION
------------

[](#installation)

### FROM SOURCE

[](#from-source)

```
git clone --recurse-submodules https://github.com/Sanix-Darker/cisv-php
cd cisv-php
make -C core/core all
cd cisv
phpize
./configure --enable-cisv
make -j"$(nproc)"
sudo make install
```

Then enable extension in `php.ini`:

```
extension=cisv.so
```

CORE DEPENDENCY (SUBMODULE)
---------------------------

[](#core-dependency-submodule)

This repository tracks `cisv-core` via the `./core` git submodule.

To fetch the latest `cisv-core` (main branch) in your local clone:

```
git submodule update --init --remote --recursive
```

CI and release workflows also run this update command, so new `cisv-core` releases are pulled automatically during builds.

QUICK START
-----------

[](#quick-start)

```
