PHP Classes


Recommend this page to a friend!
  Classes of Stefano Azzolini   PHP Murmurhash   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Murmurhash
Generate hash values of a string using Murmurhash
Author: By
Last change:
Date: 1 year ago
Size: 1,483 bytes


Class file image Download


Latest Stable Version Total Downloads Latest Unstable Version License

PHP Implementation of MurmurHash3

More information about these algorithms can be found at:

Porting of the MurmurHash3 JavaScript version created by Gary Court (


Use composer :

composer require lastguest/murmurhash


You can retrieve an hash via hash3 static method of class Murmur

use lastguest\Murmur;

echo Murmur::hash3("Hello World");
// cnd0ue

You can pass a precise seed positive integer as second parameter

use lastguest\Murmur;

echo Murmur::hash3("Hello World", 1234567);
// qtq2u

If you need the integer hash, use the hash3_int method

use lastguest\Murmur;

echo Murmur::hash3_int("Hello World");
// 427197390