PHPackages                             jdwx/param - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jdwx/param

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jdwx/param
==========

A simple PHP module for parsing values from strings with type safety.

v1.1.29(6mo ago)15674MITPHPPHP &gt;=8.1CI passing

Since May 4Pushed 6mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (33)Used By (4)

jdwx/param
==========

[](#jdwxparam)

A simple PHP module for parsing values from strings with type safety.

This is useful in a number of contexts:

- Parsing HTTP request arguments.
- Parsing database values returned as string-or-NULL.
- Parsing values from configuration files.
- Parsing values from command-line arguments.

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

[](#installation)

You can require it directly with Composer:

```
composer require jdwx/param
```

Or download the source from GitHub:

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

[](#requirements)

This library requires PHP 8.1 or later. It does not work with earlier versions. (Uses readonly properties.) It requires the mbstring extension and uses the Ds data structure extension or polyfill but has no other external dependencies.

Usage
-----

[](#usage)

```
