/php_murmurhash

murmurhash extension for PHP

Primary LanguageCBSD 2-Clause "Simplified" LicenseBSD-2-Clause

php_murmurhash

murmurhash 2.0 extension for PHP

Function

int murmurhash( string $str[, int $seed] )

Install

  • tar zxf php_murmurhash.tgz
  • cd php_murmurhash
  • phpize
  • ./configure
  • make
  • make install
  • echo "extension = murmurhash.so" >> /etc/php.ini (your php.ini file)

Examples

<?php
$str = 'some string';
$hash = murmurhash( $str );
?>