2017 © Pedro Peláez
 

library trieur

image

solire/trieur

  • Tuesday, June 26, 2018
  • by thansen-solire
  • Repository
  • 5 Watchers
  • 3 Stars
  • 414 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 28 Versions
  • 13 % Grown

The README.md

README

@deprecated see https://github.com/polinome/trieur, (*1)

Latest Stable Version Total Downloads, (*2)

TRIEUR

Trieur is a php library to sort, filter data with differents * data source (database, csv file...) managed by the Source classes * query format (array like $_POST...) managed by the Driver classes * output format (array, csv formated string...) managed by the Driver classes, (*3)

The main classes is a Dependency Injection Container (it extends the famous 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., (*4)

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., (*5)

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);

The Versions

06/05 2015

2.2.0-BETA7

2.2.0.0-beta7

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

06/05 2015

2.2.0-BETA6

2.2.0.0-beta6

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

30/04 2015

2.2.0-BETA5

2.2.0.0-beta5

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

29/04 2015

2.2.0-BETA4

2.2.0.0-beta4

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

25/03 2015

2.2.0-BETA3

2.2.0.0-beta3

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

25/03 2015

2.2.0-BETA2

2.2.0.0-beta2

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

04/03 2015

2.2.0-BETA1

2.2.0.0-beta1

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

19/01 2015

2.1.0

2.1.0.0

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

08/01 2015

2.0.2

2.0.2.0

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

08/01 2015

2.0.1

2.0.1.0

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

19/12 2014
17/12 2014

2.0.0-BETA

2.0.0.0-beta

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export

11/12 2014
11/12 2014
11/12 2014
17/11 2014

0.0.1

0.0.1.0

  Sources   Download

CC by-nc

The Requires

 

The Development Requires

by thansen

csv datatables export