PHP code example of crazynds / query-pipeline

1. Go to this page and download the library: Download crazynds/query-pipeline library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

crazynds / query-pipeline example snippets




$middlewareStack = [
    JoinQuery::class => [
        //table to join
        'table' => [
            'on' => [ // Parameters'=>[ 
            ],
        ]
    ]
];



$middlewareStack = [
    ILIKEQuery::class => [
        //table name
        'clients'=>[
            'name', // this iten will check clients.name ilike %.$data['name'].%
            'code' => 'ssn', // this iten will check clients.name ilike %.$data['ssn'].%
            'email',
        ],
    ],
];