PHPackages                             edruiz1/wiki\_crawler - 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. edruiz1/wiki\_crawler

ActiveProject

edruiz1/wiki\_crawler
=====================

This module shows a form where the user may input a keyword to get search results from wikipedia in a drupal page.

00PHP

Since Oct 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/edruiz1/wiki_crawler)[ Packagist](https://packagist.org/packages/edruiz1/wiki_crawler)[ RSS](/packages/edruiz1-wiki-crawler/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Wiki Crawler Module
===================

[](#wiki-crawler-module)

This is a code challenge developed by Eduardo Ruiz. This Drupal 8 module searches for a keyword in the wikipedia pages and returns the results to a page /wiki, also the user may add a parameter to the url to search for a keyword /wiki/{parameter}.

Setup instructions
------------------

[](#setup-instructions)

### Step #1: Clone this repository using git or use composer

[](#step-1-clone-this-repository-using-git-or-use-composer)

It is assumed that you have a functional Drupal 8 working environment. If not please refer to the [Drupal 8 site](https://www.drupal.org/).

To clone this repository use the command line in your computer and input the command that suits you the most:

**Clone this repository**

```
git clone git@github.com:edruiz1/wiki_crawler.git

```

**Use composer to download**

```
composer require edruiz/wiki_crawler

```

### Step #2: Enable the module

[](#step-2-enable-the-module)

It is assumed that you have a functional Drupal 8 working environment. If not please refer to the [Drupal 8 site](https://www.drupal.org/).

**Use Drush to enable the module**

```
drush en -y wiki_crawler

```

**Use the Drupal 8 admin interface to enable the module**

1. Log into your site using an administrator account.
2. Go to the "Extend" tab.
3. Search for wiki\_crawler.
4. Click on the checkbox next to "wiki\_crawler".
5. Click on the "Install" button at the end of the page.

### Step #3: Use the module

[](#step-3-use-the-module)

This module exposes 2 routes within Drupal 8 "/wiki" and "/wiki/param", this module also has unit tests.

**/wiki**

This route shows a short description of what this module was made for and a form where a user can input a keyword to search for.

When the search button is clicked the form will validate that the input is not empty and then proceed to search for the keyword using Wikipedia's API, if the input keyword has results then the user will be redirected to /wiki/{parameter}.

**/wiki/{parameter}**

In this route the {parameter} is replaced for the keyword the user input into the search form, it will then show the search form again and display any results for the keyword.

**Unit testing**

It is assumed that you have functional phpunit in your environment, if you don't please reffer to this page [Getting started with PHPUnit 7](https://phpunit.de/getting-started/phpunit-7.html).

Run the following command for unit testing from the root of your drupal site:

```
vendor/bin/phpunit -c core {path to wiki_crawler module}

```

Note that you need to replace "{path to wiki\_crawler module}" with the path to where the module is installed, commonly modules/custom/wiki\_crawler.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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/92c4b37c1bea951617f6fa9ba6046ab1475b7242016a2728d85711a0cabf4e19?d=identicon)[edruiz1](/maintainers/edruiz1)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/edruiz1-wiki-crawler/health.svg)

```
[![Health](https://phpackages.com/badges/edruiz1-wiki-crawler/health.svg)](https://phpackages.com/packages/edruiz1-wiki-crawler)
```

PHPackages © 2026

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