PHPackages                             jp-toolkit/request-helper - 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. jp-toolkit/request-helper

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

jp-toolkit/request-helper
=========================

A helper for fetching request data.

v1.0.0(6y ago)120GPL-3.0-or-laterPHPPHP &gt;=7CI failing

Since Apr 20Pushed 2y ago2 watchersCompare

[ Source](https://github.com/jprieton/jp-toolkit-request-helper)[ Packagist](https://packagist.org/packages/jp-toolkit/request-helper)[ Docs](https://github.com/jprieton/jp-toolkit-request-helper/)[ RSS](/packages/jp-toolkit-request-helper/feed)WikiDiscussions master Synced 6d ago

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

JP Toolkit Request Helper
=========================

[](#jp-toolkit-request-helper)

This helper serves two purposes:

1. It pre-processes global input data for security.
2. It provides some helper methods for fetching input data and pre-processing it.

Accessing form data
-------------------

[](#accessing-form-data)

### Using POST, GET, COOKIE, or SERVER Data

[](#using-post-get-cookie-or-server-data)

This helper let to you fetch POST, GET, COOKIE or SERVER items. The main advantage of using the provided methods rather than fetching an item directly `$_POST['something']` is that the methods will check to see if the item is set and return NULL if not. This lets you conveniently use data without having to test whether an item exists first. In other words, normally you might do something like this:

```
$something = isset($_POST['something']) ? $_POST['something'] : 'default value';
```

With this helper methods you can simply do this:

```
$something = Request::post('something', 'default value');
```

Please read our [Wiki](https://github.com/jprieton/jp-toolkit-request-helper/wiki) for more detailed information, advanced usage and shorthands.

Autoloading
-----------

[](#autoloading)

You'll need to use an autoloader with this. Ideally, this would be [Composer](https://getcomposer.org).

### Composer

[](#composer)

From the command line:

```
composer require jp-toolkit/request-helper
```

Bug tracker?
------------

[](#bug-tracker)

Have a bug? Please create an issue on GitHub at )

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

2218d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1640668?v=4)[Javier Prieto](/maintainers/jprieton)[@jprieton](https://github.com/jprieton)

---

Top Contributors

[![jprieton](https://avatars.githubusercontent.com/u/1640668?v=4)](https://github.com/jprieton "jprieton (3 commits)")

---

Tags

formjp-toolkitrequestwordpresswordpress-developmentwordpress-pluginwordpress-themerequestwordpresswordpress pluginwordpress-themewordpress-developmentjp-toolkit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jp-toolkit-request-helper/health.svg)

```
[![Health](https://phpackages.com/badges/jp-toolkit-request-helper/health.svg)](https://phpackages.com/packages/jp-toolkit-request-helper)
```

###  Alternatives

[freemius/wordpress-sdk

Freemius WordPress SDK

303101.4k4](/packages/freemius-wordpress-sdk)[varunsridharan/wp-dependencies

Provides Function To Check if a plugin is active/inactive &amp; function to compare versions.

1032.5k1](/packages/varunsridharan-wp-dependencies)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)[dbout/wp-module-rest-api

Quickly add routes to the WordPress Rest API.

141.3k](/packages/dbout-wp-module-rest-api)

PHPackages © 2026

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