
79

GitHub - 7snovic/php_murmurhash: a full implementation for murmurhash library
source link: https://github.com/7snovic/php_murmurhash
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PHP MurmurHash Extension.
a full implementation for murmurhash library in PHP.
Installation :-
phpize
./configure
make
make test
sudo make install
Available functions :-
// MurmurHash1 functions.
int $out = MurmurHash1(string $key, int $seed);
int $out = MurmurHash1Aligned(string $key, int $seed);
// MurmurHash2 functions.
int $out = MurmurHash2(string $key, int $seed);
int $out = MurmurHash64A(string $key, int $seed);
int $out = MurmurHash64B(string $key, int $seed);
int $out = MurmurHash2A(string $key, int $seed);
int $out = MurmurHashNeutral2(string $key, int $seed);
int $out = MurmurHashAligned2(string $key, int $seed);
// MurmurHash3 functions.
int $out = MurmurHash3_x86_32(string $key, int $seed);
array $out = MurmurHash3_x86_128(string $key, int $seed);
array $out = MurmurHash3_x64_128(string $key, int $seed);
Don't forget to run make test
.
</article
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK