Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 56 | All time: 10,575 This week: 41 |
Version | License | PHP version | Categories | |||
murmurhash-php 1.0 | MIT/X Consortium ... | 5 | Algorithms, PHP 5 |
PHP Implementation of MurmurHash3
More information about these algorithms can be found at:
Porting of the MurmurHash3 JavaScript version created by Gary Court (https://github.com/garycourt/murmurhash-js)
Use composer :
composer require lastguest/murmurhash
You can retrieve an hash via hash3
static method of class Murmur
<?php
use lastguest\Murmur;
echo Murmur::hash3("Hello World");
// cnd0ue
You can pass a precise seed positive integer as second parameter
<?php
use lastguest\Murmur;
echo Murmur::hash3("Hello World", 1234567);
// qtq2u
If you need the integer hash, use the hash3_int
method
<?php
use lastguest\Murmur;
echo Murmur::hash3_int("Hello World");
// 427197390
Files (9) |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
tests (2 files, 1 directory) | ||||
.editorconfig | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (9) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
cases (1 file) | ||||
phpstan.neon | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.