Download the PHP package illusionist/searcher without Composer

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

Illusionist Searcher

Generates database queries based on search syntax.

![packagist](https://img.shields.io/packagist/v/illusionist/searcher?style=flat-square) ![php](https://img.shields.io/packagist/php-v/illusionist/searcher?style=flat-square) ![downloads](https://img.shields.io/packagist/dt/illusionist/searcher?style=flat-square) ![license](https://img.shields.io/packagist/l/illusionist/searcher?style=flat-square) [![Build Status](https://app.travis-ci.com/illusionist-php/searcher.svg?branch=2.x)](https://app.travis-ci.com/illusionist-php/searcher)

English | [δΈ­ζ–‡](README-zh_CN.md)

πŸ— Scene

✨ Features

πŸ“¦ Install

install via composer

πŸ”¨ Usage

Add the Searchable trait to your model's

Laravel/Lumen

ThinkPHP

Your ThinkPHP version must be >= 5.x

Now you can create a database query using the search syntax

πŸ’‘ Syntax

Note that the spaces between operators don't matter for the string syntax

Exact matches

String syntax

Array syntax

Comparisons

String syntax

Array syntax

Booleans

String syntax

Array syntax

Dates

String syntax

Array syntax

Lists

String syntax

Array syntax

Between

String syntax

Array syntax

Negations

String syntax

Array syntax

Null values

String syntax

The term NULL is not case sensitive.

Array syntax

Searchable

The queried term must not match a boolean or date column, otherwise it will be handled as a boolean or date query.

String syntax

Array syntax

And/Or

String syntax

Array syntax

Keyword use studly-caps format, e.g. andOr can be written as and_or or and-or or and or or AndOr;

Relationships

String syntax

Array syntax

βš”οΈ Advanced

Searchable

If a query term is not boolean or date column, it call getQueryPhraseColumns to get searchable columns.

If no operator is specified in the return value, like is used by default.

For example:

Relationship

If you define a relation method, it will be used to query relationships.

Configuring searchable columns

Query terms that are not in the searchable property will be discarded, the default value is the real columns of the model table and the relation method name.

Configuring boolean and date column

Laravel/Lumen

Use the casts attribute to specify boolean and date columns.

ThinkPHP

Use the type attribute to specify boolean and date columns.

Configuring special keywords

Implement custom keywords and symbiotic columns by overriding the getRelaSearchName function.

selec, order_by, offset is a reserved keywords, please do not conflict with the query terms.


All versions of searcher with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
hoa/compiler Version ^3.17
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 illusionist/searcher contains the following files

Loading the files please wait ....