PHPackages                             purencool/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. [Testing &amp; Quality](/categories/testing)
4. /
5. purencool/search

ActiveLibrary[Testing &amp; Quality](/categories/testing)

purencool/search
================

PHP Search

v1.1.2(5y ago)07[9 issues](https://github.com/purencool/search/issues)GPL-3.0PHPPHP \*

Since Aug 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/purencool/search)[ Packagist](https://packagist.org/packages/purencool/search)[ RSS](/packages/purencool-search/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Purencool Search
================

[](#purencool-search)

#### Features

[](#features)

- PSR-4 autoload compliant structure
- Unit-Testing with PHPUnit
- Comprehensive Guides and tutorial
- Easy to use to any framework or even a plain php file

### Installation

[](#installation)

#### Dependencies

[](#dependencies)

1. Composer
2. PHP

`composer require purencool/search`

### How to use the library

[](#how-to-use-the-library)

After installation in the simplest way to use the is library the following:
` $obj = new Purencool\Search\Search([array of my choice]);`
`$results= $obj->getSearchResults(['search_request' => 'string I am serchig for]);`

### Development

[](#development)

#### Dependencies

[](#dependencies-1)

1. Composer
2. PHP
3. PHPUnit
4. Xdebug
5. Dephpugger

#### Installation

[](#installation-1)

- Clone the directory `git clone https://github.com/purencool/search.git`
- Install the vendor directory `composer install`

#### Debugging

[](#debugging)

1. Install [xdebug](https://xdebug.org/docs/install)
2. In the root directory of the library from the terminal run `./vendor/bin/dephpugger server` you should see a server start
3. In the index.php file uncomment `xdebug_break();` function
4. Open another terminal navigate to root directory of the library and run `./vendor/bin/dephpugger  debug` it should start listening
5. Go to the browser [localhost:8888](http://localhost:8888) the page will load but won't resolve.
6. Go back to the terminal where you enter this command `./vendor/bin/dephpugger  debug` you should see `Connected to XDebug server!`
7. To navigate the debugger navigate to [dephpugger comands-after-run](https://github.com/tacnoman/dephpugger#comands-after-run)

#### See working examples

[](#see-working-examples)

`./vendor/bin/dephpugger server` or `php -S localhost:8000` then navigate to the browser.

#### Unit tests

[](#unit-tests)

`./vendor/bin/phpunit` runs all PHPUnit tests `./vendor/bin/phpunit --filter ` run one set of tests

#### Troubleshooting

[](#troubleshooting)

If the tests are not working run the command below.
`composer dump-autoload`

#### Contributors

[](#contributors)

Thanks to [sielver](https://github.com/sielver) for fixing the Namespaces issue

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

2085d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe2c87a63fabce77efeac74bc0bec85a8c0300cf177da2607d7d656a0673d27c?d=identicon)[purencool](/maintainers/purencool)

---

Top Contributors

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

---

Tags

array-manipulationslibrarypackagistphpphp7phpunitsearchcomposerpackagetemplate

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M397](/packages/codedungeon-phpunit-result-printer)

PHPackages © 2026

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