PHPackages                             lacus/utils - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lacus/utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lacus/utils
===========

Reusable utilities library for Lacus Solutions' packages (type description, HTML escaping, random sequences)

1.0.0(1mo ago)03↓100%2MITPHPPHP &gt;=8.1

Since Mar 11Pushed 1mo agoCompare

[ Source](https://github.com/LacusSolutions/br-utils-php_utils)[ Packagist](https://packagist.org/packages/lacus/utils)[ RSS](/packages/lacus-utils/feed)WikiDiscussions main Synced 1mo ago

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

Lacus Solutions' Utils
======================

[](#lacus-solutions-utils)

[![Packagist Version](https://camo.githubusercontent.com/3a096c479809ac8b146878508cf687aa9be1325efab7badea34d1645d7358e10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616375732f7574696c73)](https://packagist.org/packages/lacus/utils)[![Packagist Downloads](https://camo.githubusercontent.com/023cc29514a7d2d847dcb98a4ae3f708e1ff2990329592be2c0c4650faa9c264/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6c616375732f7574696c73)](https://packagist.org/packages/lacus/utils)[![PHP Version](https://camo.githubusercontent.com/3fce35039b03b5c53d62cdc7302fb9ba6832820cace141d1f3b345cd5acb1ca7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c616375732f7574696c73)](https://www.php.net/)[![Test Status](https://camo.githubusercontent.com/bc71a889730b33757624a7665d324206586beb2c64e6a2d2d32852e2b30f1df1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4c61637573536f6c7574696f6e732f62722d7574696c732d7068702f63692e796d6c3f6c6162656c3d63692f6364)](https://github.com/LacusSolutions/br-utils-php/actions)[![Last Update Date](https://camo.githubusercontent.com/834b90ecfa46cb1a98ea034b833055aa34442001cfbc1c357053dfc4152d5e75/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4c61637573536f6c7574696f6e732f7574696c732d706870)](https://github.com/LacusSolutions/utils-php)[![Project License](https://camo.githubusercontent.com/90f89907bc1f6ab43ebc8ecde268088018941886649dd0c8974086f0f04ee05b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4c61637573536f6c7574696f6e732f7574696c732d706870)](https://github.com/LacusSolutions/utils-php/blob/main/LICENSE)

A PHP reusable utilities library for Lacus Solutions' packages.

[![PHP 8.1](https://camo.githubusercontent.com/d70e266076e28598d8ae3aeda67a004e4dc1f764f0d54e97ef142b529889496f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/d70e266076e28598d8ae3aeda67a004e4dc1f764f0d54e97ef142b529889496f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![PHP 8.2](https://camo.githubusercontent.com/6dab1427c2636572a765f9e0f332c0665ce863cbc46cece88aa44f747132c260/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/6dab1427c2636572a765f9e0f332c0665ce863cbc46cece88aa44f747132c260/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![PHP 8.3](https://camo.githubusercontent.com/2bace8bb56a21d62a4c1c2e2018eb2e83eff46e07cab21c26ca42feda0bdd46e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/2bace8bb56a21d62a4c1c2e2018eb2e83eff46e07cab21c26ca42feda0bdd46e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![PHP 8.4](https://camo.githubusercontent.com/cf871f594e557c5b9ae8715a2b7207b9b73686ee83156cd0308489979d0d84e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/cf871f594e557c5b9ae8715a2b7207b9b73686ee83156cd0308489979d0d84e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![PHP 8.5](https://camo.githubusercontent.com/38189c74fa19d38a84282702897dcd5bf0e54f8ee6be5cb02aa9a3a1f5711862/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e352d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/38189c74fa19d38a84282702897dcd5bf0e54f8ee6be5cb02aa9a3a1f5711862/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e352d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)Passing ✔Passing ✔Passing ✔Passing ✔Passing ✔Features
--------

[](#features)

- **Type description**: Human-readable type strings for error messages (primitives, arrays, `NaN`, `Infinity`)
- **HTML escaping**: Escape `&`, ``, `"`, `'` for safe output and XSS mitigation
- **Random sequences**: Generate numeric, alphabetic, or alphanumeric sequences of any length
- **URI encoding**: Percent-encode/decode URI components (path, query, fragment) per RFC 3986
- **Zero dependencies**: No production dependencies

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

[](#installation)

```
composer require lacus/utils
```

Quick Start
-----------

[](#quick-start)

```
