PHPackages                             polinome/trieur - 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. polinome/trieur

ArchivedLibrary[PDF &amp; Document Generation](/categories/documents)

polinome/trieur
===============

1.0.2(5y ago)21.3k↑2900%BeerwarePHPPHP &gt;=5.6.0

Since Jun 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/polinome/trieur)[ Packagist](https://packagist.org/packages/polinome/trieur)[ RSS](/packages/polinome-trieur/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (13)Versions (6)Used By (0)

README
======

[](#readme)

TRIEUR
------

[](#trieur)

Trieur is a php library to sort, filter data with differents

- data source (database, csv file...) managed by the [Source classes](https://github.com/Polinome/Trieur/tree/master/Source)
- query format (array like $\_POST...) managed by the [Driver classes](https://github.com/Polinome/Trieur/tree/master/Driver)
- output format (array, csv formated string...) managed by the [Driver classes](https://github.com/Polinome/Trieur/tree/master/Driver)

The main classes is a Dependency Injection Container (it extends the famous [Pimple](https://github.com/silexphp/Pimple)). It instanciates a driver class, a source class and a columns configuration class. Each source and driver class each extend an abstract containing basic methods to communicate through the main class.

It was originally build to print data in ower backend solution to display data, and to export them. We use dataTables jquery pluggin. Therefore one of the driver available is made for this javascript pluggin.

USAGE
-----

[](#usage)

```
use Polinome\Trieur\Trieur;
use Solire\Conf\Conf;
use Doctrine\DBAL\DriverManager;

// Defining the trieur configuration
$trieurConf = new Conf;
$trieurConf
    ->set('csv', 'driver', 'name')
    ...
    ->set('doctrine', 'source', 'name')
    ...
;

// Defining a source, here we use a doctrine connection
$parameters = [
    'driver' => 'pdo_mysql',
    ...
];
$doctrineConnection = DriverManager::getConnection($parameters);

// Then here goes the magic
$trieur = new Trieur($conf, $doctrineConnection);
$trieur->setRequest($_POST);

$response = $trieur->getResponse();

header('Content-type: application/json');
echo json_encode($response);
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Every ~353 days

Total

3

Last Release

2167d ago

### Community

Maintainers

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

---

Top Contributors

[![polinome](https://avatars.githubusercontent.com/u/6630674?v=4)](https://github.com/polinome "polinome (6 commits)")

---

Tags

exportcsvdatatables

### Embed Badge

![Health badge](/badges/polinome-trieur/health.svg)

```
[![Health](https://phpackages.com/badges/polinome-trieur/health.svg)](https://phpackages.com/packages/polinome-trieur)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M708](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.5k166.1M637](/packages/league-csv)[goodby/csv

CSV import/export library

9555.6M23](/packages/goodby-csv)[sonata-project/exporter

Lightweight Exporter library

44920.9M35](/packages/sonata-project-exporter)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[handcraftedinthealps/goodby-csv

CSV import/export library

441.6M4](/packages/handcraftedinthealps-goodby-csv)

PHPackages © 2026

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