PHPackages                             php-kit/power-primitives - 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. php-kit/power-primitives

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

php-kit/power-primitives
========================

PHP's arrays and strings as chainable, composable, object-oriented constructs

2.0.0(8mo ago)02.3k4MITPHPPHP ^8.1CI passing

Since Jan 5Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/php-kit/power-primitives)[ Packagist](https://packagist.org/packages/php-kit/power-primitives)[ Docs](https://github.com/php-kit/power-primitives)[ RSS](/packages/php-kit-power-primitives/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (4)

Power Primitives
================

[](#power-primitives)

> PHP arrays and strings with the fluency of modern collection APIs

Why Power Primitives?
---------------------

[](#why-power-primitives)

Plain PHP arrays and strings are wonderfully flexible, yet they quickly turn into walls of procedural helper calls. Loop counters, temporary variables and manual checks for missing keys clutter the happy path of your application.

The `PowerArray` and `PowerString` classes wrap native values in a lightweight object-oriented facade that embraces PHP 8 and makes common transformations readable, chainable and safe.

```
