PHPackages                             zippoxer/lazysearch - 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. zippoxer/lazysearch

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

zippoxer/lazysearch
===================

A PHP client for full-text search with lazysearch

06PHP

Since Mar 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zippoxer/lazysearch-php)[ Packagist](https://packagist.org/packages/zippoxer/lazysearch)[ RSS](/packages/zippoxer-lazysearch/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Full-Text Search for PHP with [marco](http://marco.zippo.io)
============================================================

[](#full-text-search-for-php-with-marco)

Empower your PHP application with powerful full-text search.

Installation
------------

[](#installation)

```
composer require zippoxer/marco

```

Usage
-----

[](#usage)

Insert a document to folder `people`:

```
$client = new Marco\Client('your-api-key');

$client->people->put('1', [
    'name' => 'David',
    'age' => 35,
    'about' => 'I like pizza.'
]);
```

Search it:

```
$results = $client->people->search('pizza');

foreach($results['hits'] as $person) {
    echo $person->name;
}
```

Advanced search:

```
$results = $client->people->search('piz', [
    // Leave empty for standard query. Other options are: 'prefix', 'phrase' and 'advanced'.
    'queryType' => 'prefix',

    // Which field in the documents to search? Default is '*' (all fields).
    'field' => 'name',

    // Which fields from the documents to return? Default is '*' (all fields).
    'fields' => 'name,age,country',

    // How to sort the results? default is by _score descending (most relevant first).
    // Examples:
    // * 'age' sorts by field 'age' ascending
    // * '-age' sorts by field 'age' descending (reverse order)
    // * '-age,register_date' sorts by field 'age' descending,
    //   then by field 'register_date'
    'sort' => 'age',

    // Allow a specified number of typos in the search query. Default is 0 (no typos allowed).
    'typos' => 1,

    // Highlight matched words with HTML  tags. Default is false.
    'highlight' => true,

    // Pagination.
    'page' => 2, // Default is 1.
    'hitsPerPage' => 50 // Default is 10.
]);

foreach($results['hits'] as $person) {
    echo $person->name;
}
```

For more details, see documentation at [lazysearch.zippo.io](http://lazysearch.zippo.io)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/74922788aec556b37e6187fe957e97dbeb6d8f53d9fbccb696c3163c0469aee7?d=identicon)[zippoxer](/maintainers/zippoxer)

---

Top Contributors

[![zippoxer](https://avatars.githubusercontent.com/u/859015?v=4)](https://github.com/zippoxer "zippoxer (8 commits)")

### Embed Badge

![Health badge](/badges/zippoxer-lazysearch/health.svg)

```
[![Health](https://phpackages.com/badges/zippoxer-lazysearch/health.svg)](https://phpackages.com/packages/zippoxer-lazysearch)
```

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M202](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M64](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[massive/search-bundle

Massive Search Bundle

721.4M13](/packages/massive-search-bundle)[shyim/opensearch-php-dsl

OpenSearch/Elasticsearch DSL library

175.9M9](/packages/shyim-opensearch-php-dsl)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
