Download the PHP package crazynds/query-pipeline without Composer

On this page you can find all versions of the php package crazynds/query-pipeline. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package query-pipeline

Query Pipeline Description

Latest Version on Packagist Total Downloads

This package contains a collection of class that can be used with Laravel Pipeline.

Can do the same as the package pipeline-query-collection however the syntax differs, and gives the user a little more possibilities.

Allows you to implement conditionals for joins and add where clauses if certain data was passed.

Installation

You can install the package via composer:

Usage

See the example below:

Steps

  1. First add the trait QueryPipeline from Crazynds\QueryPipeline\QueryPipeline to your class.
  2. Setup your middleware stack variable
  3. Send the base query, your data values and your stack to $this->runPipeline and the query pipeline will run.
  4. Be happy :>

Middlewares

A middleware in this context means a step in which the query will be processed. See all the middlewares in folder src/middleware.

Each middleware has your stack of parameters, see below the specifications:

Join Query

The join query middleware add a join query based on conditions passed as parameters. Each join query can include multiples joins.

The base object recived by each iten in array is represented below:

The on array is limited to only simple verification, without multiple wheres. Because of this, the array recive only 3 parameter, the left column, the comparator, and the right column.

The checkParameters array, if not defined, the join will be added to query every time. If defined, the join will only be added to array if any of the string in the array is a key of array data;

ILIKE Query

The ilike query middleware add a where in the query with a comparation of type LIKE no case sensitive. The query add automatically the % in the start and end the string in the value.

The base object recived by each iten in array is represented below:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of query-pipeline with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
spatie/laravel-package-tools Version ^1.9.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package crazynds/query-pipeline contains the following files

Loading the files please wait ....