Download the PHP package chinpei215/cakephp-stackable-finder without Composer

On this page you can find all versions of the php package chinpei215/cakephp-stackable-finder. 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 cakephp-stackable-finder

Build Status Coverage Status

StackableFinder Plugin for CakePHP 2.x

Requirements

Installation

Usage

You can start stacking finders by calling q(), and you can execute the query and get the resutls by calling exec().

Note that q() method returns an instance of StackableFinder. The object also has find() method like a Model - so you can use fluent interface, but it is not a sub-class of Model.

So you cannot call any other methods implemented by Model.

Instead, you can use where() or some other 3.x compatible methods for building queries.

Subqueries

You can make subqueries like the following:

You will see that IN ? appears after the field name in the left-hand side, and you will see also that $q appears inside an [] in the right-hand side.

It is not compatible with 3.x but it is nessecary at this time in 2.x.

Getting results

As mentioned above, you can do it by calling exec() but there are some other ways to get the results of the query.

You can iterate the StackableFinder object directly.

Or you can use first() or count() instead of exec().

This is same as the following:

But, note that stacking find('first') or first() after find('list') doesn't work. Because _findFirst() doen't returns the first result actually. That returns the element with index 0.

So this is a bad example:

You will get an empty array instead of the first item of the list.

Also note that stacking find('count') or count() after find('list') doesn't work. Because _findCount() expects an array like [['Model' => ['count' => N ]]], but _findList changes the array before it get called.

You can override these methods in your model to change the behaviors, if necessary.


All versions of cakephp-stackable-finder with dependencies

PHP Build Version
Package Version
Requires composer/installers Version *
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 chinpei215/cakephp-stackable-finder contains the following files

Loading the files please wait ....