2017 © Pedro Peláez
 

library smaz

PHP port of Smaz - a short string compression library

image

zhenhao/smaz

PHP port of Smaz - a short string compression library

  • Thursday, December 24, 2015
  • by zhenhao
  • Repository
  • 0 Watchers
  • 5 Stars
  • 3,152 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

smaz.php

PHP port of Smaz - a short string compression library, (*1)

php test.php

-50%    http://www.baidu.com
-50%    This is a small string
+9.09%  THIS IS A SMALL STRING
-48.15% Nothing is more difficult, and therefore more precious, than to be able to decide
-45.24% http://github.com/antirez/smaz/tree/master
-15.38% 1000 numbers 2000 will 10 20 30 compress very little
+0% good
+25%    luck
+7.41%  好好学习,天天向上
+2.9%   白日依山尽,黄河入海流,欲穷千里目,更上一层楼

require from composer

1. composer require zhenhao/smaz
2. try...
<?php
include "vendor/autoload.php";

$str = 'http://www.baidu.com';
$x = Smaz::encode($str);
var_dump($x, strlen($x));
$t = Smaz::decode($x);
var_dump($t, strlen($t));

The Versions

24/12 2015

dev-master

9999999-dev

PHP port of Smaz - a short string compression library

  Sources   Download

MIT

by Avatar zhenhao

php smaz

24/12 2015

v1.1.1

1.1.1.0

PHP port of Smaz - a short string compression library

  Sources   Download

MIT

by Avatar zhenhao

php smaz

11/11 2014

v1.1.0

1.1.0.0

PHP port of Smaz - a short string compression library

  Sources   Download

MIT

by Avatar zhenhao

03/11 2014

v1.0.0

1.0.0.0

PHP port of Smaz - a short string compression library

  Sources   Download

MIT

by Avatar zhenhao