1
0
mirror of https://github.com/danog/PHPStruct.git synced 2024-11-30 04:19:08 +01:00
Go to file
2016-07-08 02:19:00 +02:00
lib/danog/PHP Fix more bugs 2016-07-08 02:19:00 +02:00
tests/danog/PHP Added travis-ci tests 2016-07-05 20:57:15 +02:00
.gitignore First commit (master) 2016-07-04 01:43:23 +02:00
.travis.yml Fix more bugs 2016-07-08 02:19:00 +02:00
composer.json Rename package and start translating tests. 2016-07-05 19:29:13 +02:00
example.php Fix more bugs 2016-07-08 02:19:00 +02:00
LICENSE First commit (master) 2016-07-04 01:43:23 +02:00
README.md Added travis-ci tests 2016-07-05 20:57:15 +02:00
think Update 2016-07-06 23:36:35 +02:00

PHPStruct class

Build Status

Licensed under MIT.

PHP implementation of Python's struct module.

This library was created to help me develop a client for the mtproto protocol.

The functions and the formats are exactly the ones used in python's struct (https://docs.python.org/2/library/struct.html)

For now custom byte size is not fully supported, as well as p and P formats.

Installation

Install using composer:

composer require danog/phpstruct

Usage

require('vendor/autoload.php');
$rightpack = new \danog\PHP\Struct();

Daniil Gentili