Skip to content

Commit 23da77c

Browse files
committed
readme for php8
1 parent 99928db commit 23da77c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*MurmurHash* is an algorithm desiged by Austin Appleby.
44

55
## Changes
6-
1. Add PHP 7 support.
6+
1. Add PHP 7.x/8.0 support.
77
2. Seed parameter can be omitted.
88

99
## Install
@@ -15,8 +15,7 @@ make
1515
sudo make install
1616
```
1717

18-
19-
Create `murmurhash3.ini` in lib dir (for example php 7.1: `/etc/php/7.1/mods-available/`):
18+
Create `murmurhash3.ini` in lib dir (for example php 8.0: `/etc/php/8.0/mods-available/`):
2019
```
2120
extension=murmurhash3.so
2221
```
@@ -29,14 +28,17 @@ sudo phpenmod murmurhash3
2928
## Usage
3029

3130
```php
31+
<?php
3232
// Example
33-
echo murmurhash3('anystring'); // default seed usage
34-
echo murmurhash3('anystring', 123); // specific seed usage
33+
echo murmurhash3('anystring') . PHP_EOL; // default seed usage
34+
echo murmurhash3('anystring', 123) . PHP_EOL; // specific seed usage
3535

3636
// Some locale strings
37-
echo murmurhash3('№АаЯя');
37+
echo murmurhash3('№АаЯя') . PHP_EOL;
3838

3939
// Example from @maksimf
40-
echo murmurhash3('豥붢㦖徱阵儹㜀耄巅簏罚撦');
41-
echo murmurhash3('豥붢㦖徱阵儹㜀耄巅簏罚撦', 1096928849);
40+
echo murmurhash3('豥붢㦖徱阵儹㜀耄巅簏罚撦') . PHP_EOL;
41+
echo murmurhash3('豥붢㦖徱阵儹㜀耄巅簏罚撦', 1096928849) . PHP_EOL;
42+
43+
echo 'all ok' . PHP_EOL;
4244
```

0 commit comments

Comments
 (0)