Uri Query Parser

Build Status Latest Version

This package contains a userland PHP uri query parser and builder.

<?php

use function League\Uri\query_parse;
use function League\Uri\query_build;

$pairs = query_parse('module=home&action=show&page=😓');
// returns [
//     ['module', 'home'],
//     ['action', 'show'],
//     ['page', '😓']
// ];

$str = query_build($pairs, '|');
// returns 'module=home|action=show|page=😓'

System Requirements

You need:

Installation

$ composer require league/uri-query-parser