Skip to content

datibbaw/php-xxhash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-xxhash

PHP extension to add support for the xxhash fast hashing algorithm. xxhash is designed to be fast enough to use in real-time streaming applications.

How To Install

   phpize
   ./configure --enable-xxhash
   make
   sudo make install

How To Use

This extension adds one new PHP function:

    int xxhash32(string $data);

It will checksum the string, and return the checksum.

hash() integration

It also registers the xx32 hash algorithm to be used in the hash() function family:

    hash('xx32', $data);

Or:

    $h = hash_init('xx32');
    hash_update($h, $data);
    echo hash_final($h);

License

BSD 2-clause license.

About

PHP extension for the xxhash library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%