PHPackages                             paragonie/typed-arrays - 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. paragonie/typed-arrays

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

paragonie/typed-arrays
======================

Strictly typed scalar arrays for PHP 8.3 and newer

72101[1 issues](https://github.com/paragonie/typed-arrays/issues)PHP

Since May 14Pushed 1y ago6 watchersCompare

[ Source](https://github.com/paragonie/typed-arrays)[ Packagist](https://packagist.org/packages/paragonie/typed-arrays)[ RSS](/packages/paragonie-typed-arrays/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Strictly Typed Arrays in PHP 8
==============================

[](#strictly-typed-arrays-in-php-8)

[![Build Status](https://github.com/paragonie/typed-arrays/actions/workflows/ci.yml/badge.svg)](https://github.com/paragonie/typed-arrays/actions)[![Latest Stable Version](https://camo.githubusercontent.com/829417d9bcfe935fa913027c8a0866b1440612a294a70a080290db1d563d14ab/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f74797065642d6172726179732f762f737461626c65)](https://packagist.org/packages/paragonie/typed-arrays)[![Latest Unstable Version](https://camo.githubusercontent.com/970cfe6a97642cec671a603f159e815c85bd057b67d312155b21befc7d441ebd/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f74797065642d6172726179732f762f756e737461626c65)](https://packagist.org/packages/paragonie/typed-arrays)[![License](https://camo.githubusercontent.com/5cbf06637a72c90c226796499967e7bf6ce649351dd45308d2599b641c4e602d/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f74797065642d6172726179732f6c6963656e7365)](https://packagist.org/packages/paragonie/typed-arrays)[![Downloads](https://camo.githubusercontent.com/94f0caa44e7ed1c41cf5b4ad4660d499030b396a6843f6ef2972ff91ca866f47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617261676f6e69652f74797065642d6172726179732e737667)](https://packagist.org/packages/paragonie/typed-arrays)

**Requires PHP 8.3**. This is best described through example:

```
