Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Google's CityHash extension for PHP.
Dependencies
==================
Extension requires libcityhash library. You can checkout it via svn:
svn checkout http://cityhash.googlecode.com/svn/trunk/ cityhash
or simply download it from
http://code.google.com/p/cityhash/downloads/list
Follow the instructions in README file to install library.
Installation
==================
To compile extension, you will have to execute the following steps:
$ phpize
$ ./configure --with-cityhash
$ make
$ [sudo] make install
Add following line to your php.ini and restart Apache
extension=cityhash.so
Using
==================
<?php
print CityHash64('sample string');
print CityHash128('another string');

About

Cityhash PHP bindings

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages