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

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

solire/trieur
=============

2.4.3(8y ago)37691CC by-ncPHPPHP &gt;=5.6.0

Since Nov 17Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Solire/Trieur)[ Packagist](https://packagist.org/packages/solire/trieur)[ RSS](/packages/solire-trieur/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (13)Versions (28)Used By (1)

README
======

[](#readme)

@deprecated see

[![Latest Stable Version](https://camo.githubusercontent.com/e3e09f4ce19d1d816690b5e03d583a76af79784b9c6140da7e2b96c2bfba44c7/68747470733a2f2f706f7365722e707567782e6f72672f736f6c6972652f7472696575722f762f737461626c652e706e67)](https://packagist.org/packages/solire/trieur)[![Total Downloads](https://camo.githubusercontent.com/98418d123d4902fc6905cb8a496e09b3eb20a875379ba156c91a477a1c9de399/68747470733a2f2f706f7365722e707567782e6f72672f736f6c6972652f7472696575722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/solire/trieur)

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/Solire/Trieur/tree/master/Source)
- query format (array like $\_POST...) managed by the [Driver classes](https://github.com/Solire/Trieur/tree/master/Driver)
- output format (array, csv formated string...) managed by the [Driver classes](https://github.com/Solire/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 Solire\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

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~49 days

Recently: every ~203 days

Total

25

Last Release

3067d ago

Major Versions

0.0.1 → 1.0.02014-11-27

1.1.2 → 2.0.0-BETA2014-12-17

PHP version history (2 changes)0.0.1PHP &gt;=5.5.0

1.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5824454?v=4)[Thansen](/maintainers/thansen-solire)[@thansen-solire](https://github.com/thansen-solire)

---

Top Contributors

[![stephane-monnot](https://avatars.githubusercontent.com/u/6066368?v=4)](https://github.com/stephane-monnot "stephane-monnot (3 commits)")[![polinome](https://avatars.githubusercontent.com/u/6630674?v=4)](https://github.com/polinome "polinome (2 commits)")[![thansen-solire](https://avatars.githubusercontent.com/u/5824454?v=4)](https://github.com/thansen-solire "thansen-solire (2 commits)")

---

Tags

exportcsvdatatables

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.9k157.3M893](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.5k182.1M860](/packages/league-csv)[goodby/csv

CSV import/export library

9865.7M25](/packages/goodby-csv)[sonata-project/exporter

Lightweight Exporter library

44921.6M40](/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.)

1693.3M36](/packages/kartik-v-yii2-export)[handcraftedinthealps/goodby-csv

CSV import/export library

441.8M7](/packages/handcraftedinthealps-goodby-csv)

PHPackages © 2026

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