PHPackages                             bentools/cpimport-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. bentools/cpimport-bundle

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

bentools/cpimport-bundle
========================

Symfony Bundle - Use file watchers with MariaDb Columnstore CpImport utility

159PHP

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bpolaszek/cpimport-bundle)[ Packagist](https://packagist.org/packages/bentools/cpimport-bundle)[ RSS](/packages/bentools-cpimport-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CpImport Bundle
===============

[](#cpimport-bundle)

[**MariaDb ColumnStore**](https://mariadb.com/fr/node/819) is a very powerful, column-oriented MySQL storage, powerful for analytics and Big Data.

It has the drawback of extremely slow write operations, but comes with `cpimport`, a binary that can load CSV files with millions of rows into the table of your choice, in a few seconds.

This Symfony bundle enables a file watcher that will look into a directory, pick up new CSV files when they come, run `cpimport` and delete them.

Important

This repository is no longer maintained and may be removed in a near future. You may consider creating a fork if you still require it.

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

[](#installation)

> composer require bentools/cpimport-bundle:1.0.x-dev

Configuration
-------------

[](#configuration)

Add the bundle to your kernel. Then, map your directories to database/tables like this:

```
# config/packages/cpimport.yaml (or app/config.yml in Symfony 3)

cpimport:
    cpimport_bin: /usr/local/mariadb/columnstore/bin/cpimport
    watch:
        /path/to/csv_sales:
            database: my_shop
            table: sales_day
            options:
                delimiter: ','
                enclosure: '"'
                timeout: 60
```

Usage
-----

[](#usage)

To automatically process new files in configured directories:

```
php bin/console cpimport:watch
```

To manually process a CSV file through `cpimport`:

```
php bin/console cpimport:run my_shop sales_day path/to/file.csv --delimiter=','
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (8 commits)")

### Embed Badge

![Health badge](/badges/bentools-cpimport-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bentools-cpimport-bundle/health.svg)](https://phpackages.com/packages/bentools-cpimport-bundle)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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