Download the PHP package thesis/endian without Composer

On this page you can find all versions of the php package thesis/endian. 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 endian

Endian

PHP Version Requirement GitHub Release Code Coverage

Pack and unpack binary integers and floats in any byte order.

Installation

Usage

Design decisions

No narrow int types on input

Pack methods accept plain int rather than narrow PHPStan types like Int8 or Int32. This is intentional: requiring callers to carry and assert narrow types would flood driver code with redundant checks and type imports. Thus, we've decided to keep the validation on our side.

Bounds are checked with assert(), which means zero overhead in production when assertions are disabled (zend.assertions = -1).

No object wrappers for 8/16/32-bit

8/16/32-bit integers are represented as native PHP int, not value objects. This avoids allocation and method-call overhead on every pack/unpack — important in tight loops typical of binary protocol parsing.

64-bit integers

64-bit values use BcMath\Number to handle the full unsigned range beyond PHP_INT_MAX:

Supported types

Type PHP type Range
int8 int −128 .. 127
uint8 int 0 .. 255
int16 int −32 768 .. 32767
uint16 int 0 .. 65535
int32 int −2147483648 .. 2147483647
uint32 int 0 .. 4294967295
int64 BcMath\Number −2⁶³ .. 2⁶³−1
uint64 BcMath\Number 0 .. 2⁶⁴−1
float float 32-bit IEEE 754
double float 64-bit IEEE 754

All versions of endian with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-bcmath Version *
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 thesis/endian contains the following files

Loading the files please wait ...