PHPackages                             stanislav-web/phalcon-searcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. stanislav-web/phalcon-searcher

ActiveLibrary[Search &amp; Filtering](/categories/search)

stanislav-web/phalcon-searcher
==============================

Phalcon Database Searcher. This is the search service is designed to search multiple SQL tables. Convenient to use autocomplete, search documents, search the whole site.

v1.0-beta(11y ago)263978[5 issues](https://github.com/stanislav-web/Searcher/issues)MITJavaScriptPHP &gt;=5.3

Since Dec 17Pushed 7y ago7 watchersCompare

[ Source](https://github.com/stanislav-web/Searcher)[ Packagist](https://packagist.org/packages/stanislav-web/phalcon-searcher)[ Docs](https://github.com/stanislav-web/Searcher)[ RSS](/packages/stanislav-web-phalcon-searcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (9)Used By (0)

Phalcon Database Searcher
=========================

[](#phalcon-database-searcher)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8ce3927c30c25947b6837276488f3445b5b793b242b437c60b898c90e0baec74/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616e69736c61762d7765622f53656172636865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stanislav-web/Searcher/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/5ded52b4d4f4e49a3f24347184ce6798ccb03312771b9e696ff796b51d74e4a2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616e69736c61762d7765622f53656172636865722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stanislav-web/Searcher/?branch=master) [![Build Status](https://camo.githubusercontent.com/e873f1132d8b5537e6cc886e1ef337f3c574397f9948eedf732e48ea980bd5a8/68747470733a2f2f7472617669732d63692e6f72672f7374616e69736c61762d7765622f53656172636865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/stanislav-web/Searcher) [![Total Downloads](https://camo.githubusercontent.com/f88ec60f849568c3d85f80fc0ef47fb54be6f49fd5adf65286cdaeabc014e6c2/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d7765622f7068616c636f6e2d73656172636865722f646f776e6c6f6164732e737667)](https://packagist.org/packages/stanislav-web/phalcon-searcher) [![Latest Unstable Version](https://camo.githubusercontent.com/209a6ae91a9356e6d67c2669df6f220544184766925ee3238287525f083c868e/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d7765622f7068616c636f6e2d73656172636865722f762f756e737461626c652e737667)](https://packagist.org/packages/stanislav-web/phalcon-searcher)

Extension is used to group search for project models. *(Currently under TDD)*

Description
-----------

[](#description)

This is the search service is designed to search multiple SQL tables. Convenient to use autocomplete, search documents, search the whole site.

Change Log
----------

[](#change-log)

#### \[v 1.0-beta\] 2014-12-16

[](#v-10-beta-2014-12-16)

```
- support MySQL
- support column type such as INT, VARCHAR, CHAR, TEXT, DATE, DATETIME
- fulltext search
- support all main expressions (where, order, group, limit, offset)
- multi table search
- compatible with \Phalcon\Paginator
- view results as json, serialized, array or \Phalcon\Mvc\Model\Resultset\Simple
- support callbacks to pretty modifying result

```

Compatible
----------

[](#compatible)

- PSR-0, PSR-1, PSR-2, PSR-4 Standards

System requirements
-------------------

[](#system-requirements)

- PHP 5.5.x &gt;
- MySQL
- Phalcon extension 1.3.x

Install
-------

[](#install)

First update your dependencies through composer. Add to your composer.json:

```
"require": {
    "stanislav-web/phalcon-searcher": "dev-master",
}
```

Then run to update dependency and autoloader

```
php composer.phar update
php composer.phar install
```

or just

```
php composer.phar require stanislav-web/phalcon-searcher dev-master

```

*(Do not forget to include the composer autoloader)*

Or manual require in your loader service

```
    $loader->registerNamespaces([
        'Searcher\Searcher' => 'path to src'
    ]);
```

You can create an injectable service

```
    $this->di['searcher'] = function() {
        return new \Searcher\Searcher();
    };
```

Usage
-----

[](#usage)

#### Simple usage

[](#simple-usage)

```
