PHPackages                             arokettu/unsigned - 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. arokettu/unsigned

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

arokettu/unsigned
=================

Fixed length unsigned arithmetic emulation

1.3.7(8mo ago)1449.7k↓40.9%1BSD-2-ClausePHPPHP ^7.0 || ^8.0

Since Aug 26Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/arokettu/unsigned)[ Packagist](https://packagist.org/packages/arokettu/unsigned)[ Docs](https://sandfox.dev/php/unsigned.html)[ RSS](/packages/arokettu-unsigned/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (24)Used By (1)

Unsigned Arithmetic for PHP
===========================

[](#unsigned-arithmetic-for-php)

[![Packagist](https://camo.githubusercontent.com/9819d300c2a8658942539eddd44ee3829a67d3a1dd68a58dad878707ccfe1183/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726f6b657474752f756e7369676e65642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/unsigned)[![PHP](https://camo.githubusercontent.com/391d501c6abdea95a35f99329a440624db60d105905ccea0ff9451a76123517c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726f6b657474752f756e7369676e65642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/unsigned)[![Packagist](https://camo.githubusercontent.com/cedf12f5b90db8ba7abd238ca7e99426ead750d7adc5b1cddf7035cd83fe48a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61726f6b657474752f756e7369676e65642e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/BSD-2-Clause)[![Gitlab pipeline status](https://camo.githubusercontent.com/27da8730f48caf0fa22a2410c99537ab96cf432df49e9ef392d53a83cad83712/68747470733a2f2f696d672e736869656c64732e696f2f6769746c61622f706970656c696e652f73616e64666f782f756e7369676e65642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://gitlab.com/sandfox/unsigned/-/pipelines)[![Codecov](https://camo.githubusercontent.com/7b0029f21ac02f25f312923693c9c4aec91695b999018323b4f5d50b98a7c26f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f676c2f73616e64666f782f756e7369676e65643f7374796c653d666c61742d737175617265)](https://codecov.io/gl/sandfox/unsigned/)

Fixed length unsigned arithmetic emulation for PHP. The lib was created as a helper for the random-polyfill.

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

[](#installation)

```
composer require 'arokettu/unsigned'
```

Example
-------

[](#example)

```
