Skip to content

nheimann1/php-xxhash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-xxhash

PHP extension to add support for the xxhash - r42 extremely 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 three new PHP functions:

    // 32 bit version (all values are positive)
    int xxhash32(string $data);
    
    // 64 bit version (can return negative values since PHP doesn't support unsigned long values)
    long xxhash64(string $data);
    
    // 64 bit version (all values are positive but returned as strings)
    string xxhash64Unsigned(string $data);

They will checksum the string, and return the checksum.

License

BSD 2-clause license.

About

PHP extension for the xxhash library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.6%
  • M4 1.7%
  • JavaScript 0.7%