{"id":13462371,"url":"https://github.com/Bit-Wasp/buffertools-php","last_synced_at":"2025-03-25T01:32:11.570Z","repository":{"id":29192868,"uuid":"32723974","full_name":"Bit-Wasp/buffertools-php","owner":"Bit-Wasp","description":"Toolbox for working with binary and hex data. Similar to NodeJS Buffer.","archived":false,"fork":false,"pushed_at":"2023-07-04T14:06:49.000Z","size":258,"stargazers_count":64,"open_issues_count":6,"forks_count":28,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T08:07:10.272Z","etag":null,"topics":["binary","buffer","hex"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bit-Wasp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-23T09:59:30.000Z","updated_at":"2024-11-19T22:54:41.000Z","dependencies_parsed_at":"2024-06-18T12:22:39.247Z","dependency_job_id":"0504ffdb-d205-43e6-b80b-ec5b98b5e6f0","html_url":"https://github.com/Bit-Wasp/buffertools-php","commit_stats":{"total_commits":167,"total_committers":8,"mean_commits":20.875,"dds":0.6167664670658682,"last_synced_commit":"43c8bc231e5bc3d1f9bf90655b18c8f3e02418a9"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbuffertools-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbuffertools-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbuffertools-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Wasp%2Fbuffertools-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bit-Wasp","download_url":"https://codeload.github.com/Bit-Wasp/buffertools-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245382164,"owners_count":20606163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary","buffer","hex"],"created_at":"2024-07-31T12:00:46.197Z","updated_at":"2025-03-25T01:32:11.549Z","avatar_url":"https://github.com/Bit-Wasp.png","language":"PHP","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Buffertools\n\nThis library provides a `Buffer` and `Parser` class to make dealing with binary data in PHP easier.\n`Templates` extend this by offering a read/write interface for larger serialized structures. \n\n[![Build Status](https://travis-ci.org/Bit-Wasp/buffertools-php.svg?branch=master)](https://travis-ci.org/Bit-Wasp/buffertools-php)\n[![Code Coverage](https://scrutinizer-ci.com/g/bit-wasp/buffertools-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/bit-wasp/buffertools-php/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Bit-Wasp/buffertools-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Bit-Wasp/buffertools-php/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/bitwasp/buffertools/v/stable)](https://packagist.org/packages/bitwasp/buffertools)\n[![Total Downloads](https://poser.pugx.org/bitwasp/buffertools/downloads)](https://packagist.org/packages/bitwasp/buffertools)\n[![License](https://poser.pugx.org/bitwasp/buffertools/license)](https://packagist.org/packages/bitwasp/buffertools)\n\n## Requirements:\n\n * PHP 7.0+\n * Composer\n * ext-gmp\n\n## Installation\n\n You can install this library via Composer: `composer require bitwasp/buffertools` \n  \n## Examples \n \n Buffer's are immutable classes to store binary data. \n Buffer::hex can be used to initialize from hex\n Buffer::int can be used to initialize from a positive decimal integer (int|string)\n   \n Buffer's main methods are:\n  - getBinary()\n  - getHex()\n  - getInt()\n\n Parser will read Buffers. \n Parser's main methods are: \n  - readBytes()\n  - writeBytes()\n  - readArray()\n  - writeArray()\n  \n In most cases, the interface offered by Parser should not be used directly. \n Instead, Templates expose read/write access to larger serialized structures.\n \n - [Example 1: Using buffer to wrap binary data](./examples/usingBuffer.php) \n - [Example 2: Using parser to extract binary data](./examples/usingParser.php) \n - [Example 3: Using templates to read multiple elements from a parser](./examples/usingTemplates.php) \n - [Example 4: Using templates to read/write structured messages](./examples/usingTemplates2.php) \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBit-Wasp%2Fbuffertools-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBit-Wasp%2Fbuffertools-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBit-Wasp%2Fbuffertools-php/lists"}