Download the PHP package phpinnacle/buffer without Composer
On this page you can find all versions of the php package phpinnacle/buffer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download phpinnacle/buffer
More information about phpinnacle/buffer
Files in phpinnacle/buffer
Download phpinnacle/buffer
More information about phpinnacle/buffer
Files in phpinnacle/buffer
Vendor phpinnacle
Package buffer
Short Description PHPinnacle binary buffer implementation
License MIT
Homepage https://github.com/phpinnacle/buffer
Package buffer
Short Description PHPinnacle binary buffer implementation
License MIT
Homepage https://github.com/phpinnacle/buffer
Please rate this library. Is it a good library?
Informations about the package buffer
PHPinnacle Buffer
PHPinnacle Buffer is a simple tool for operating binary data in PHP. Mostly it simply wraps PHP pack/unpack functions.
Install
Via Composer
Basic Usage
Testing
Benchmarks
Some results with pure PHP realisation:
Benchmark | Best (μs) | Mean (μs) | Mode (μs) | Worst (μs) |
---|---|---|---|---|
appendIntegers | 11.605 | 12.115 | 12.047 | 12.888 |
appendFloats | 10.464 | 10.913 | 10.786 | 17.943 |
appendString | 8.857 | 41.021 | 20.611 | 362.174 |
consume | 48.916 | 50.721 | 50.399 | 61.542 |
read | 26.617 | 27.665 | 27.500 | 31.744 |
And results with enabled extension:
Benchmark | Best (μs) | Mean (μs) | Mode (μs) | Worst (μs) |
---|---|---|---|---|
appendIntegers | 2.522 | 2.657 | 2.625 | 3.031 |
appendFloats | 1.987 | 2.136 | 2.095 | 3.307 |
appendString | 3.692 | 3.854 | 3.806 | 5.695 |
consume | 13.701 | 14.654 | 14.454 | 17.977 |
read | 5.128 | 5.425 | 5.313 | 6.625 |
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of buffer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.3
The package phpinnacle/buffer contains the following files
Loading the files please wait ....