PHPackages                             pragma-framework/search - 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. [Framework](/categories/framework)
4. /
5. pragma-framework/search

ActiveLibrary[Framework](/categories/framework)

pragma-framework/search
=======================

A simple Pragma module which can help to index and search text in Pragma Framework

1.18.0(3w ago)26.4k↓42.9%5MITPHPPHP &gt;=5.3.0

Since Nov 20Pushed 3w ago2 watchersCompare

[ Source](https://github.com/pragma-framework/search)[ Packagist](https://packagist.org/packages/pragma-framework/search)[ RSS](/packages/pragma-framework-search/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (6)Versions (35)Used By (0)

Pragma Search
=============

[](#pragma-search)

A simple Pragma module which can help to index and search text in Pragma Framework.

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

[](#installation)

In composer.json add:

```
require {"pragma-framework/search": "dev-master"}

```

Config
------

[](#config)

Pragma\\Search use a stemmer (wamania/php-stemmer) in order to extends the search to other words with the same root.

To handle your language, you can specify the lang of your text:

```
define('STEMMER_LANGUAGE', 'French');

```

By default, the stemmer works with "English"

And define:

```
define('PRAGMA_MODULES','core,search');

```

For CLI indexation.

Define your own min length for words the system should index
------------------------------------------------------------

[](#define-your-own-min-length-for-words-the-system-should-index)

By default, the min length is 3 characters. But you can define a custom constant named `PRAGMA_SEARCH_MIN_WORD_LENGTH` in order to change this behavior.

Skip the contexts during the indexation
---------------------------------------

[](#skip-the-contexts-during-the-indexation)

If you don't aim to display the context of a result coming from the search, you can skip the contexts during the indexation by setting `PRAGMA_SEARCH_SKIP_CONTEXT` to `true`.

CLI exec
--------

[](#cli-exec)

```
php public/index.php indexer:run

```

or

```
php public/index.php indexer:rebuild

```

###  Health Score

55

↑

FairBetter than 97% of packages

Maintenance95

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~94 days

Recently: every ~363 days

Total

34

Last Release

25d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96c7742e8371ca21c3518a55945f737d11d72431c4490bc92958018fa5cbe023?d=identicon)[cyrilrouyer](/maintainers/cyrilrouyer)

![](https://avatars.githubusercontent.com/u/3683194?v=4)[pips](/maintainers/pips)[@pips](https://github.com/pips)

---

Top Contributors

[![thomas-netlor](https://avatars.githubusercontent.com/u/4964617?v=4)](https://github.com/thomas-netlor "thomas-netlor (15 commits)")[![cyrilrouyer](https://avatars.githubusercontent.com/u/23081586?v=4)](https://github.com/cyrilrouyer "cyrilrouyer (11 commits)")[![pips-](https://avatars.githubusercontent.com/u/1785712?v=4)](https://github.com/pips- "pips- (11 commits)")[![Ti-Tom](https://avatars.githubusercontent.com/u/664195?v=4)](https://github.com/Ti-Tom "Ti-Tom (10 commits)")[![cgiuliani](https://avatars.githubusercontent.com/u/24897654?v=4)](https://github.com/cgiuliani "cgiuliani (1 commits)")

---

Tags

searchframeworkindexpragma

### Embed Badge

![Health badge](/badges/pragma-framework-search/health.svg)

```
[![Health](https://phpackages.com/badges/pragma-framework-search/health.svg)](https://phpackages.com/packages/pragma-framework-search)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k78](/packages/elgg-elgg)[akuechler/laravel-geoly

Perform fast and efficient radius searches on your Laravel Eloquent models.

4163.1k](/packages/akuechler-laravel-geoly)

PHPackages © 2026

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