Download the PHP package jgswift/qinq without Composer

On this page you can find all versions of the php package jgswift/qinq. 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 qinq

qinq

PHP 5.5+ quasi integrated query

Build Status Scrutinizer Code Quality Latest Stable Version License Coverage Status

Installation

Install via cli using composer:

Install via composer.json using composer:

Description

qinq is a lightweight array handling component that provides support for complex array manipulation with queries and built-in query caching

This package does not parse PHP or do any AST handling. qinq only manipulates arrays using php's built-in array functionality.

Dependency

Usage

The following is a basic example

Populating a qinq collection

Filter

Map

Applies a callback to the collection elements

Order

Sort

Group

Join

Difference

Computes the difference between collection and argument

Except

Alias of Difference

First

Retrieves first item in collection.

Last

Retrieves last item in collection

Pluck

Aggregate specific array key or object property

From

Replaces entire collection with given arguments. A single array/Iterator/Collection may also be given.

Intersect

Retrieves values that exist in both arrays

Reduce

Reduces array to single value using callback function

Shuffle

Mix all items in collection to new random positions

Values

Retrieves all values from collection

Keys

Retrieves all collection keys

Pack

Removes all data from collection that is weakly equivalent to false or 0

Random

Selects a number of random items from collection

Recursive

Recursive maps through nested collections with a callback function

Search

Search filters through nested collections with a callback function

Selector

Selector filters through nested collections using common string selectors

Flatten

Retrieves every value from a multidimensional collection tree and transforms it into a single dimensional collection

A flag argument may be provided to limit the flattening to certain types of collections or only arrays. The following example will leave the ArrayObject intact and avoid descending into any collections that are not strictly arrays.

Flatten Flags

Flattens strictly php arrays, cancels all other flags

Flattens objects implementing the qtil Traversable interface

Flattens objects implementing the built-in php Traversable interface.

Flattens objects implementing the built-in php Iterator interface

Note: You may combine or exclude flags using bitwise logic.
The default flatten flag setting descends into any known collection type by default, namely COLLECTION, TRAVERSABLE, and ITERATOR.

Storing

qinq requires jgswift/delegatr to serialize and store queries.

Note: Query storing relies on eval to unserialize Closures.
Do not rely on users to provide serialized queries to your application as this can make your application vulnerable to code injection.
You can verify a queries authenticity by performing a cryptographic checksum on the serialized contents every time a client sends the query.
However said functionality is not implemented in this package.


All versions of qinq with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
jgswift/qtil Version 0.1.*
jgswift/kenum Version 0.1.*
jgswift/kfiltr Version 0.1.*
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 jgswift/qinq contains the following files

Loading the files please wait ....