PHPackages                             simplepie/utility-pack - 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. simplepie/utility-pack

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

simplepie/utility-pack
======================

A set of small utilities for PHP.

2.2.0(6y ago)12162Apache-2.0PHPPHP &gt;=7.2

Since May 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/simplepie/utility-pack)[ Packagist](https://packagist.org/packages/simplepie/utility-pack)[ RSS](/packages/simplepie-utility-pack/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (22)Versions (6)Used By (0)

[![](https://raw.githubusercontent.com/simplepie/.github/master/logo.png)](https://raw.githubusercontent.com/simplepie/.github/master/logo.png)

---

Utility Pack
============

[](#utility-pack)

A set of small utilities for PHP 7.2+.

Badges
------

[](#badges)

### Health

[](#health)

[![Open Issues](https://camo.githubusercontent.com/770e7866abe58d1f614c3bffc022983790d5b6ccaa011fa5d07206dcc720d4bb/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/issues)[![Pull Requests](https://camo.githubusercontent.com/68a1f593ff2feee4df84441ae6f297766abd6812c78ad5e19d0c91b2d07c8870/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/pulls)[![Contributors](https://camo.githubusercontent.com/ca08ed7fea21e24de62d94673594f6c91b8d9d6a49e05c50b1128f5f084dc3bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/graphs/contributors)[![Repo Size](https://camo.githubusercontent.com/b76ebc3f2466675ce42fd0568f351edb1011970b22e041d00fc06abac5a8f50a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/pulse/monthly)[![GitHub Commit Activity](https://camo.githubusercontent.com/7465ff0825d806cc7b950d8464929adebcc1f85a5c243901803c088f3286553e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f792f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/commits/master)[![GitHub Last Commit](https://camo.githubusercontent.com/39d8459df55cae63565da630cbab09c99a9d207d7fa9df59251d865afa8a2ea2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/commits)

### Quality

[](#quality)

[![Travis branch](https://camo.githubusercontent.com/df9d5055cee12e8338f35dde224ee85f61727173fda75e230d585a3ea4565f51/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73696d706c657069652f7574696c6974792d7061636b2f6d61737465722e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d5472617669732532304349)](https://travis-ci.org/simplepie/utility-pack)[![Coveralls](https://camo.githubusercontent.com/fae4b636313e4e7d101cda21e4b5f1204e32e66aef080e4eb121e1ee2a005b79/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f73696d706c657069652f7574696c6974792d7061636b2f6d61737465722e7376673f7374796c653d666f722d7468652d6261646765)](https://coveralls.io/github/simplepie/utility-pack)[![Code Quality](https://camo.githubusercontent.com/8aa41d905c03c3088c31db443a5ad7b04e98c1e61e7b41c440d9bae98aa39321/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d5363727574696e697a6572)](https://scrutinizer-ci.com/g/simplepie/utility-pack)[![Symfony Insight](https://camo.githubusercontent.com/29a1bc17d04c6559dcf05a4eb23e311fe2f6b47bb81447de9c03093b317a941c/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f65613231383438312d646365372d343334612d386133632d6264396364393831386363612e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d53796d666f6e79253230496e7369676874)](https://insight.symfony.com/projects/ea218481-dce7-434a-8a3c-bd9cd9818cca)

### Social

[](#social)

[![Author](https://camo.githubusercontent.com/4013a2574b0d7b5cfdb83037a30ddeb5bd89a1e66d2c9543623f6a5a94867fa5/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40736b797a79782d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](https://twitter.com/skyzyx)[![Follow](https://camo.githubusercontent.com/624a4a4815d5886e0d8c686a1b8ca30159abc303ea52e7f262e714c0503ac34d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f73696d706c657069655f6e672e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d466f6c6c6f772532304073696d706c657069655f6e67)](https://twitter.com/intent/follow?screen_name=simplepie_ng)[![Blog](https://camo.githubusercontent.com/5b000a5a7fca52d2fad7323258e0888d1db35c6b71ebb9023599524485b99e76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d656469756d2d73696d706c657069652d2d6e672d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](https://medium.com/simplepie-ng)[![Stars](https://camo.githubusercontent.com/0447aa74499ac54bb19ba0eb64fcec94b845de196b178d8affb00366f4b3732c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4769744875622532305374617273)](https://github.com/simplepie/utility-pack/stargazers)

### Compliance

[](#compliance)

[![License](https://camo.githubusercontent.com/013521fea0557cc396ee03e7f1f9a6c0f625ff1f3bb710487b55dba386a12d42/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73696d706c657069652f7574696c6974792d7061636b2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/simplepie/utility-pack/blob/master/LICENSE.md)

Usage
-----

[](#usage)

### QueryString

[](#querystring)

Believe it or not, different PHP installations can have different default values for generating query strings. This class uses explicit rules so that query strings are always generated exactly the same way. Leverages [`http_build_query()`](http://php.net/manual/en/function.http-build-query.php) under the hood.

```
