Skip to content
Cityhash PHP bindings
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README

README

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');
You can’t perform that action at this time.