PHPackages                             wpnx/handler - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. wpnx/handler

ActiveLibrary[HTTP &amp; Networking](/categories/http)

wpnx/handler
============

A flexible PHP request handler for WordPress installations

v1.0.0(11mo ago)01.2k↓45.5%MITPHPPHP &gt;=8.0CI passing

Since Jun 14Pushed 11mo agoCompare

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

READMEChangelogDependencies (5)Versions (2)Used By (0)

WpNx Handler
============

[](#wpnx-handler)

[![Tests](https://github.com/wpnx-io/handler/actions/workflows/tests.yml/badge.svg)](https://github.com/wpnx-io/handler/actions/workflows/tests.yml)[![Code Coverage](https://camo.githubusercontent.com/3f2e3e75b07deec380f89dab6da7c959dc33780687c5c818cb823c52db42e26f/68747470733a2f2f636f6465636f762e696f2f67682f77706e782d696f2f68616e646c65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wpnx-io/handler)[![Latest Stable Version](https://camo.githubusercontent.com/8fc7f3d16fadcd6230d575f5bf3a24f0c4c789883ccdd1cb570dd90850cb9288/68747470733a2f2f706f7365722e707567782e6f72672f77706e782f68616e646c65722f762f737461626c65)](https://packagist.org/packages/wpnx/handler)[![License](https://camo.githubusercontent.com/2fc6de0216dd2dc2e5cb2e1c28da880717c40ea960c37a86d093088016dcb63c/68747470733a2f2f706f7365722e707567782e6f72672f77706e782f68616e646c65722f6c6963656e7365)](https://packagist.org/packages/wpnx/handler)[![PHP Version](https://camo.githubusercontent.com/2db63e3eb1260607bb01e247fba1981170a031844a291c68cd7cd2e22e6e70ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f77706e782f68616e646c6572)](https://packagist.org/packages/wpnx/handler)

A modern, secure PHP request handler for WordPress installations. Provides intelligent request routing, static file serving, and comprehensive security features. Optimized for traditional hosting, AWS Lambda, and containerized environments.

Features
--------

[](#features)

- **Simple API**: Just three lines of code to get started
- **Intelligent Routing**: Automatic handling of WordPress requests, static files, and directories
- **Security First**: Built-in protection against common attacks
- **Multisite Support**: Full support for WordPress Multisite installations
- **AWS Lambda Ready**: Automatic environment detection and optimization
- **Extensible**: Easy to add custom processing logic
- **Modern PHP**: PHP 8.0+ with strict typing and Symfony HttpFoundation

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- WordPress 5.0 or higher (recommended)

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

[](#installation)

Install via Composer:

```
composer require wpnx/handler
```

Quick Start
-----------

[](#quick-start)

### Minimal Setup

[](#minimal-setup)

```
