Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 624 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 624 Bytes

binpack-php

The php implementation for binpack.

installation

  • by complie

    phpize
    ./configure
    make & make install
    
  • install from PECL

    BINPACK is an PECL extension, thus you can simply install it by:

    pecl install binpack

  • brew for Mac

    Binpack has been added to homebrew-php, so you can:

    brew search binpack
    

    Choose a version to install:

    brew install homebrew/php/php54-binpack
    

usage

<?php
$data = array('name' => 'srain');
$str = bin_encode($data);
$data = bin_decode($str);