Download the PHP package adept-digital/int-utils without Composer

On this page you can find all versions of the php package adept-digital/int-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package int-utils

Integer Utilities

Utilities for emulating WebAssembly 32-bit and 64-bit integer operations in PHP. These may be useful for porting an application or library from C, C++, or other languages.

Requirements

This package requires a 64-bit build of PHP 8.4 or later.

There is no dependency on external Composer packages or PHP extensions.

Installation

Install via Composer.

Usage

There are two classes with near-identical interfaces:

The following operations are provided:

[^1]: Method is only provided for completeness. It does nothing different when compared to the equivalent PHP operator.

[^2]: Method only provides a trivial transformation on inputs or output.

[^3]: Only available on the \AdeptDigital\IntUtils\Int64 class.

32-bit representation

PHP has no 32-bit integer type, so 32-bit numbers are represented in 64-bit, but are limited to the range of a signed 32-bit integer (-2,147,483,648 to 2,147,483,647). For example, 4,294,967,295 (2**32-1) should be represented as -1. Using numbers outside this range will cause a RangeException to be thrown, unless assertions are disabled, in which case the result is undefined.

To correctly format an unsigned 32-bit integer, unset the most significant 32 bits:

64-bit representation

PHP has no unsigned integer type, so numbers larger than PHP_INT_MAX will appear to be negative.

To correctly format an unsigned integer, use printf() or sprintf():

Contributing

All contributions are welcome. If you would like to work on a new feature, consider creating an issue before starting.

TODO

License

Copyright 2025 David Gallagher [email protected].

The package is licensed under the GNU Lesser General Public License 3.0 or later.


All versions of int-utils with dependencies

PHP Build Version
Package Version
Requires php-64bit Version >=8.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adept-digital/int-utils contains the following files

Loading the files please wait ...