Skip to content

tomazov/PHP-CityHash-Extension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working on porting Google's CityHash (https://github.com/google/cityhash/tree/master/src) to its own PHP PECL Extension.

CityHash is awesome, I'd love to see its adoption spread and I thought that a PECL extension for it might help. I wrote an alpha-version of it and it creates cityhash64/cityhash128 functions.
***
<?php
$test = array('I', 'do', 'not', 'know', 'about', 'making', 'awkward', 'rhopalic', 'sentences', '.');
foreach ($test AS $a) {
        echo cityhash64($a) .' - '. $a . PHP_EOL;
        echo cityhash128($a) .' - '. $a . PHP_EOL;
}
***
Just phpize/configure/make to create the extension. It isn't fully polished (missing licenses and comments), but works great and is really just 6 hours away from being 1.0 worthy. I'd love your feedback on this.

P.S.
https://github.com/yandex/ClickHouse/tree/master/contrib/libcityhash/src

About

Working on porting Google's CityHash algorithm to PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 95.1%
  • C 2.9%
  • M4 2.0%