PHPackages                             ducha/autocomplete - 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. [Caching](/categories/caching)
4. /
5. ducha/autocomplete

ActiveLibrary[Caching](/categories/caching)

ducha/autocomplete
==================

Autocomplete suggestions for Laravel using Redis.

v1.0.1(6y ago)29291MITPHPPHP &gt;=7.2.0

Since Dec 10Pushed 6y ago2 watchersCompare

[ Source](https://github.com/markomilivojevic/autocomplete)[ Packagist](https://packagist.org/packages/ducha/autocomplete)[ RSS](/packages/ducha-autocomplete/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Laravel redis autocomplete
==========================

[](#laravel-redis-autocomplete)

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

[](#installation)

```
$ composer require ducha/autocomplete
```

Usage
-----

[](#usage)

Import facade:

```
//...
use Ducha\Autocomplete\Facades\Autocomplete;
//...
```

#### Main methods

[](#main-methods)

Store item to bucket:

```
Autocomplete::addTerm('cities', 'Berlin');
```

Get suggestions from bucket:

```
Autocomplete::complete('cities', 'Ber');
```

#### All methods

[](#all-methods)

```
/**
 * Add an item to bucket
 * @method static bool addTerm(string $bucket, string $term)
 *
 * Add more items to bucket
 * @method static int addTerms(string $bucket, array $terms)
 *
 * Remove item from bucket
 * @method static bool removeTerm(string $bucket, string $term)
 *
 * Autocomplete term
 * @method static array complete(string $bucket, string $prefix)
 *
 * Get all items from bucket
 * @method static array all(string $bucket)
 */
```

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~233 days

Total

2

Last Release

2210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85a10574447f265de286a7ee172e60f644d7433adce2a01bf24d60856a2741fa?d=identicon)[ducha](/maintainers/ducha)

---

Top Contributors

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

---

Tags

autocompletelaravelphpredissearch

### Embed Badge

![Health badge](/badges/ducha-autocomplete/health.svg)

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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