1
0
mirror of https://github.com/danog/PHPStruct.git synced 2024-11-26 19:54:38 +01:00
PHPStruct/README.md

28 lines
619 B
Markdown
Raw Normal View History

# PHPStruct class
2016-07-04 01:43:23 +02:00
Licensed under MIT.
PHP implementation of Python's struct module.
2016-07-04 01:43:23 +02:00
This library was created to help me develop a [client for the mtproto protocol](https://github.com/danog/MadelineProto).
The functions and the formats are exactly the ones used in python's struct (https://docs.python.org/2/library/struct.html)
2016-07-04 01:43:23 +02:00
For now custom byte size is not fully supported, as well as p and P formats.
## Installation
Install using composer:
```
composer require danog/phpstruct
2016-07-04 01:43:23 +02:00
```
# Usage
```
require('vendor/autoload.php');
$rightpack = new \danog\PHP\Struct();
2016-07-04 01:43:23 +02:00
```
[Daniil Gentili](http://daniil.it)