承接 zhenhao/smaz 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zhenhao/smaz

最新稳定版本:v1.1.1

Composer 安装命令:

composer require zhenhao/smaz

包简介

PHP port of Smaz - a short string compression library

关键字:

README 文档

README

PHP port of Smaz - a short string compression library

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));

统计信息

  • 总下载量: 4.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 0
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-11