2017 © Pedro Peláez
 

library binary

Working with binary strings

image

axy/binary

Working with binary strings

  • Friday, January 12, 2018
  • by axy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 637 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

axy\binary

Working with binary strings in PHP. At the moment this package doesn't make much sense. Used by some other packages., (*1)

Latest Stable Version Minimum PHP Version Tests Coverage Status License, (*2)

Documentation

Native string functions allow to work with text strings as with binary (a char is a byte). The problem is that these functions can be overridden from mbstring., (*3)

The library uses mbstring functions with the charset 8bit. And native functions if mbstring is not enabled., (*4)

Binary

Class axy\binary\Binary with static methods., (*5)

  • getLength(string $string): int
  • getSlice(string $string, int $offset [, int $length]): string
  • getByteFromChar(string $char [, bool $signed = FALSE]): int
  • getByteFromString(string $string, int $index [, bool $signed = FALSE]): int
  • unpackBytes(string $string [, bool $signed = false]): int[]

The Versions

12/01 2018

dev-master

9999999-dev https://github.com/axypro/binary

Working with binary strings

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

02/12 2015

0.1.0

0.1.0.0 https://github.com/axypro/binary

Working with binary strings

  Sources   Download

MIT

The Requires

  • php >=5.4.0