PHPackages                             spiriitlabs/poliris-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spiriitlabs/poliris-bundle

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

spiriitlabs/poliris-bundle
==========================

Poliris bundle for CSV

v1.0.0(6mo ago)21MITPHPPHP &gt;=8.2CI passing

Since Nov 9Pushed 4mo ago2 watchersCompare

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

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

PolirisBundle
=============

[](#polirisbundle)

This bundle provide Poliris generation CSV.

Poliris Current version is V4.1.17.

[![Latest Stable Version](https://camo.githubusercontent.com/ae20741b582f38fe7dcadf8903a6d873baabf467c566a31a273fa6b5fad26e3d/68747470733a2f2f706f7365722e707567782e6f72672f737069726969746c6162732f706f6c697269732d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/spiriitlabs/poliris-bundle)[![CI Tests](https://github.com/spiriitlabs/poliris-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/spiriitlabs/poliris-bundle/actions/workflows/ci.yml)[![CI Tests](https://github.com/spiriitlabs/poliris-bundle/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/spiriitlabs/poliris-bundle/actions/workflows/coding-standards.yml)

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

[](#installation)

Add [spiriitlabs/poliris-bundle](https://packagist.org/packages/spiriitlabs/poliris-bundle)to your `composer.json` file:

```
$ php composer.phar require "spiriitlabs/poliris-bundle"
```

Documentation
-------------

[](#documentation)

📚 **[Complete Documentation](docs/DOCUMENTATION.md)**

The documentation provides:

- 🚀 Detailed getting started tutorial
- 🎯 Illustrated use cases (SeLoger, photos, automation)
- 📊 Model reference tables
- 🔧 Common error solutions
- 💡 Complete and tested code examples

How to use
----------

[](#how-to-use)

A CSV Poliris is very long. More than 333 columns.

Here we propose to use the pattern Builder to create it.

Some classes:
-------------

[](#some-classes)

The `Column` class represents a position in a CSV file by associating an index with a value:

```
$column1 = new Column(1, 'Agence id'); // a string
$column2 = new Column(2, true); // OUI / NON
$column2 = new Column(2, new \DateTimeImmutable('2023-05-01')); // format d/m/Y
$column2 = new Column(2, object); // return toString on object
$column2 = new Column(2, 1); // 1
```

If a string is used, we remove spaces and EOL.

Exemple:

```
beautiful  house
with garage
```

is transformed into:

```
beautiful house with garage

```

After that we have a lot of classes, exemple "Exterieur"

If we look at the constructor:

```
    public function __construct(
        $ascenseur,
        $calme,
        $piscine,
        $vueDegagee,
        $entree,
        $visAVis,
        $monteCharge
    ) {
        $this->ascenseur = new Column(41, $ascenseur);
        $this->calme = new Column(63, $calme);
        $this->piscine = new Column(65, $piscine);
        $this->vueDegagee = new Column(78, $vueDegagee);
        $this->entree = new Column(189, $entree);
        $this->visAVis = new Column(192, $visAVis);
        $this->monteCharge = new Column(197, $monteCharge);
    }
```

In this example, the CSV file contains data about Exterior features of a property, which are not sequentially arranged in consecutive columns. To simplify the handling of this data, we decided to consolidate them using the `Column` class.

Each property is represented by an instance of `Column`, where the index specifies the column position in the CSV file, and the value holds the associated data. This approach allows for easier access to the exterior features of the property, even if they are scattered throughout the CSV file.

There is 31 classes. [models](Models/Annonce/)

Usage
-----

[](#usage)

```
$builder = new AnnonceExportBuilder();

foreach ($lines as $line) {
    try {
        $this->createLine($builder, $line);
    } catch (\Throwable $throwable) {
        // log
    }
}

return $builder->build();
```

```
function createLine() {
    $builder
        ->startLine()
        ->withIdentifiant(
            'somewhere',
            'agence_id',
            Annonce::ANNONCE_TYPE_VENTE,
            'REF_BA123'
        )
        ->withType(
            getType(),
            getSubType()
        )
```

Important - No validation
-------------------------

[](#important---no-validation)

There is no validation on the data. Why? A CSV file can have several thousand rows, multiplied by approximately 300 columns, and PHP struggles to keep up.

Historically, there were validation classes using the Validator component, but it is too memory-intensive.

One solution would be to batch process the CSV and validate only a few rows at a time. However, that is not currently on the agenda.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance72

Regular maintenance activity

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1807e890fb651ea404b659ae9e720c3d71020b13ed4385faaf79ae77d45fb3c6?d=identicon)[SpiriitLabs](/maintainers/SpiriitLabs)

---

Top Contributors

[![gilles-g](https://avatars.githubusercontent.com/u/377875?v=4)](https://github.com/gilles-g "gilles-g (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (2 commits)")

---

Tags

bundleleboncoinphppolirisselogersymfony-bundlesymfonybundlepoliris

### Embed Badge

![Health badge](/badges/spiriitlabs-poliris-bundle/health.svg)

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

###  Alternatives

[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[opensky/runtime-config-bundle

This bundle provides a way to inject parameters into services at runtime by exposing a RuntimeParameterBag service, which functions exactly like Symfony2's own ParameterBags.

10949.5k1](/packages/opensky-runtime-config-bundle)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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