2017 © Pedro Peláez
 

library qp

A library to parse or stringify query parameters in PHP.

image

srph/qp

A library to parse or stringify query parameters in PHP.

  • Saturday, December 12, 2015
  • by srph
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

qp Build Status Latest Stable Version Total Downloads Latest Unstable Version License

A library to parse or stringify query parameters in PHP., (*1)

Deprecation Notice

Use http_build_query instead. This library doesn't have a valid use case., (*2)

Installing

composer require srph/qp

Supports versions >=5.5.9 (including 7.0)., (*3)

Usage

use Qp\Qp;
Qp::parse('username=kier'); // ['username' => 'kier']
Qp::parse('user[name]=kier'); // ['user' => ['name' => 'kier']];
Qp::parse('users[]=kier'); // ['users' => ['kier']]
Qp::stringify(['username' => 'kier', 'password' => '****']); // 'username=kier&password=*****'

Limitations

  • Parser does not support nested arrays and objects (https://github.com/srph/qp/issues/1).

I'm short in time at the moment, and I don't see their usage in real world application yet. But if you would like them to be supported (which I would consider rare), feel free to submit a pull request., (*4)

The Versions

12/12 2015

dev-master

9999999-dev

A library to parse or stringify query parameters in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Avatar srph

12/12 2015

v0.1.0

0.1.0.0

A library to parse or stringify query parameters in PHP.

  Sources   Download

MIT

The Requires

 

by Avatar srph