Skip to content

Commit 4ed3fe4

Browse files
committed
Modify the readme .
1 parent 2191d22 commit 4ed3fe4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ $hashids = new Hashids();
4242

4343
$hash = $hashids->encode(1, 2, 3, 4, 5); // ADf9h9i0sQ
4444
$numbers = $hashids->decode($hash); // [1, 2, 3, 4, 5]
45+
46+
//or would you prefer to use a static method call
47+
$hash = Hashids::encode(1, 2, 3, 4, 5); // ADf9h9i0sQ
48+
$numbers = Hashids::decode($hash); // [1, 2, 3, 4, 5]
4549
```
4650

4751
## Performance
4852

49-
php extension and native php performance contrast.
53+
php extension and only php code performance contrast.
5054

5155
![performance comparison](https://cdoco.com/images/performance.png "performance comparison")
5256

0 commit comments

Comments
 (0)