PHP code example of hemric / murmurhash

1. Go to this page and download the library: Download hemric/murmurhash library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hemric / murmurhash example snippets



use hemric\Murmur;

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


use hemric\Murmur;

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


use hemric\Murmur;

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