-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME
More file actions
35 lines (22 loc) · 733 Bytes
/
README
File metadata and controls
35 lines (22 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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');