PHPackages                             jaapio/pagefind - 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. jaapio/pagefind

ActivePhp-ext[Search &amp; Filtering](/categories/search)

jaapio/pagefind
===============

PHP bindings for pagefind search library

0.1.0(5mo ago)223PHPCI failing

Since Nov 27Pushed 5mo agoCompare

[ Source](https://github.com/jaapio/php-pagefind)[ Packagist](https://packagist.org/packages/jaapio/pagefind)[ RSS](/packages/jaapio-pagefind/feed)WikiDiscussions main Synced 1mo ago

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

PHP PageFind Extension
======================

[](#php-pagefind-extension)

A PHP extension for integrating the Rust-based PageFind search indexing library into PHP applications. PageFind is a static search library that works without a backend, making it ideal for static sites and JAMstack applications.

Overview
--------

[](#overview)

This PHP extension wraps the PageFind Rust library, allowing you to:

- Index HTML content directly from PHP
- Add entire directories of HTML files to the search index
- Write search index files that can be served statically

The extension handles all the interaction with the PageFind Rust library, providing a clean PHP API that follows PHP's best practices for error handling and response management.

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

[](#installation)

*Prerequisites: Rust toolchain must be installed.*

```
git clone https://github.com/jaapio/php-pagefind.git
cd php-pagefind
cargo build
# Copy the resulting .so file to your PHP extensions directory
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
